Treetable can't be correctly updated

UI Components for Vue
Post Reply
kenddriz
Posts: 3
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,

cagatay.civici
Prime
Posts: 18428
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

10 Oct 2020, 15:54

Try to create a new instance of your tree model.

Please see;

https://vuejs.org/v2/guide/reactivity.html#For-Arrays

kenddriz
Posts: 3
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

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests