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

Is it possible to update the column definitions? #134

Closed syshex closed 7 years ago

syshex commented 7 years ago

Hi there!

I'm trying to update a vuetable columns definition during runtime. I've got a method that gets the array from server side and updates the columns var of the tables.

When this update happens, the tables stops showing the column names.

Looking at the Vuetable component from the development console I can see that the fields array was updated correctly.

Maybe it is on the documentation how to do this, but I haven't found it.

Thanks

syshex commented 7 years ago

Sorry, my bad !

I wasn't sending all column attributes. I was just sending title and name. When I start sending all parameters, it starts showing.

Thanks

adevapp commented 7 years ago

Did you have an example of your dynamic get? I'm having the same issue.