Updating Treeview after DOM initialization

General issues related to the use of Metro 4
Post Reply
JcL
Posts: 1
Joined: Sun Jun 17, 2018 7:57 pm
Status: Offline

Updating Treeview after DOM initialization

Post by JcL » Sun Jun 17, 2018 8:10 pm

I have an app that must refresh a Treeview (adding content). I call "$().html(my_new_html_here)" to do this, but the Treeview lost its feature after update, becoming a basic list. Is there a better way to achieve such update, if possible at all ? Is a re-init/refresh of some kind required ? Documentation mentions a Vue.js specific call to "Metro.init();" but does this apply in my case ?

NB: I am new to metroui, but quite impressed by the work behind. Thanks for this nice piece of software.

User avatar
olton
Site Admin
Posts: 69
Joined: Mon Apr 09, 2018 6:19 pm
Location: Kiev, Ukraine
Status: Offline

Post by olton » Sun Jun 17, 2018 9:13 pm

use TreeView methods https://metroui.org.ua/treeview.html#_treeview_methods to manipulate nodes at runtime

Post Reply