ratiw / vue-table

data table simplify! -- vuetable is a Vue.js component that will automatically request (JSON) data from the server and display them nicely in html table with swappable/extensible pagination component.
MIT License
1.83k stars 303 forks source link

Row totals #181

Open guntisluta opened 6 years ago

guntisluta commented 6 years ago

Hello! Is there the way to count shown row totals in the bottom of the table?

ratiw commented 6 years ago

Which version of Vuetable are you using?

guntisluta commented 6 years ago

Hello!

I’m using vue-tables for vue.js v1

Ar cieņu, Guntis

On 22 Mar 2018, at 15:28, Rati Wannapanop notifications@github.com wrote:

Which version of Vuetable are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ratiw/vue-table/issues/181#issuecomment-375305214, or mute the thread https://github.com/notifications/unsubscribe-auth/AF0eI7uajwD92v01fVMnl42Yr_JS5Z-7ks5tg6bggaJpZM4S2334.

ratiw commented 6 years ago

@guntisluta For rows currently display in the table, you could access tableData and summarize the data for display, e.g. this.$refs.vuetable.tableData when you use v-ref directive to mark the reference to vuetable.

<vuetable v-ref:vuetable
  //...
></vuetable>