Treetable can't be correctly updated
I'm new with Prime. I use primevue for my project. To print my product categories and subcategories, I use treetable. When I add new subcategory to a category which doesn't have any child yet, it's perfectly added, but I can't see it immediatly cause expender icon doesn't show itself until after I try to filter or refresh page,
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Try to create a new instance of your tree model.
Please see;
https://vuejs.org/v2/guide/reactivity.html#For-Arrays
Please see;
https://vuejs.org/v2/guide/reactivity.html#For-Arrays
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Hi,
You can use vm.$set(vm.items, indexOfItem, newValue) on Vue2. Please examine the shared link for details.
Best Regards,
You can use vm.$set(vm.items, indexOfItem, newValue) on Vue2. Please examine the shared link for details.
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 1 guest