Replies: 4 comments 18 replies
-
@d-lasagno Sorry, this is a year late, but I just recently started using vue-table. You can get data to be reactive by making it a js-getter. I didn't try it with columns, but I don't see why it wouldn't work
|
Beta Was this translation helpful? Give feedback.
-
Hello. All my attempts to get reactivity from the table have failed. My last try: |
Beta Was this translation helpful? Give feedback.
-
As of v8.20.0, it looks like they've added Vue reactivity for They're talking about doing it for all props in v9 (coming up hopefully soon). Docs page: https://tanstack.com/table/latest/docs/framework/vue/guide/table-state#using-reactive-data Thanks @OlaAlsaker! Related follow-up PRs with bug-fixes (so, you should probably use > |
Beta Was this translation helpful? Give feedback.
-
Thanks for the good work by @OlaAlsaker on Vue reactivity support, I was almost going to give up on this lib due to #4876 but I'm just glad things moved. I understand some more work is planned on supporting the other options, so I took a look and experimented with doing things "the Vue way" over at https://stackblitz.com/edit/musakui-vue-table?file=src%2FApp.vue
|
Beta Was this translation helpful? Give feedback.
-
I was experimenting with vue-table, but I can't understand how to pass reactive data as props for useVueTable. I wrapped the table options inside a reactive object, but whenever the options update, the table remains the same. Is there a way to update the table?
Here is a snippet of what I used:
Beta Was this translation helpful? Give feedback.
All reactions