Treetable can't be correctly updated

UI Components for Vue
Post Reply
Posts: 4
Joined: 09 Oct 2020, 07:46

09 Oct 2020, 08:00

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,

Posts: 18474
Joined: 05 Jan 2009, 00:21
Location: Cybertron

10 Oct 2020, 15:54

Try to create a new instance of your tree model.

Please see;

Posts: 4
Joined: 09 Oct 2020, 07:46

13 Oct 2020, 09:57

Thank you! But I don't know how to do that.
I mean creating new treetable instance

Posts: 4637
Joined: 29 Jun 2013, 12:38

12 Nov 2020, 11:10


You can use vm.$set(vm.items, indexOfItem, newValue) on Vue2. Please examine the shared link for details.

Best Regards,

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest