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

How to use multiple vue-table on one page? #39

Closed ginc0der closed 8 years ago

ginc0der commented 8 years ago

I'm new in vuejs and I really helped with this vue-table but I don't know how to use multiple vue-table in single page. I hope you can help me. Thanks.

ratiw commented 8 years ago

@ginc0der Try this #23

ginc0der commented 8 years ago

Thank you sir :)

abishekrsrikaanth commented 8 years ago

@ratiw, that example was pretty helpful. I am using the vuetable:loaded to perform post actions (display total counts on badges, etc..) on the table. This event gets called for each table on the page. Is there a way to identify the current table instance for which the event was called and also get the data being bound to that table?

ratiw commented 8 years ago

@abishekrsrikaanth Not really. I myself haven't used multiple vuetable on the same page, so I never thought of it being used like this. There might be a few way to do that but I haven't had time to explore it in more detail. But if you feel like you can help on this, you can try by forking it to make some improvement and PR back to me. That would be really helpful to the project and others. :)