Vue-good-table: Method to redraw table

Created on 17 Nov 2020  路  7Comments  路  Source: xaksis/vue-good-table

Don't you have a redraw method?

All 7 comments

@alfligno not sure what you mean by redraw @alfligno the table should reflect the state of your rows/columns as they change. If you really want to re-render the entire component for some reason, you can put a v-if on the component and use a setTimeout to make it unmount and mount again.

For nested object it somehow does not make any changes.
But I already have a solution. forcing the list to be refreshed by making changes on the filters will do

Your talking about vue reactivity.
Use Vue.set() to update your data

Also has a situation where the table does not reflect what's inside my object. We have an input field which users set to for instance -4 and that updates the stockinventory-field. So after POST I want the table to reflect the new values in mainobject which is used to populate tablerows in the first place. i will try the methods suggested here. The field with -4 should go back to 0 or empty.

Also has a situation where the table does not reflect what's inside my object. We have an input field which users set to for instance -4 and that updates the stockinventory-field. So after POST I want the table to reflect the new values in mainobject which is used to populate tablerows in the first place. i will try the methods suggested here. The field with -4 should go back to 0 or empty.

I suggest to use this.$set as what @p0psicles suggest, the method I use is my own derivation on the issue and it may not work :)

We tested that. Not sure if it was implemented correctly though. Then I myself choose the v-if route and that worked great. A small blink on the table but nothing annoying. Don't ask me what I named the toggling-variable. 馃槤

We tested that. Not sure if it was implemented correctly though. Then I myself choose the v-if route and that worked great. A small blink on the table but nothing annoying. Don't ask me what I named the toggling-variable. 馃槤

I guess we are on the same boat. Toggling will do, just use some spare variable XD, which is named change

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jannishuebl picture jannishuebl  路  3Comments

dsinibaldi77 picture dsinibaldi77  路  4Comments

davidjr82 picture davidjr82  路  6Comments

Sharvadze picture Sharvadze  路  4Comments

luizzz picture luizzz  路  6Comments