Treeview Animated Javascript/jQuery re-initialize?


Topic: Treeview Animated Javascript/jQuery re-initialize?

joel.jdesignera pro asked a year ago

Is there any way to re-initialize treeview-animated javascript/jquery? I have to use javascript to append the treeview DOM elements. And the treeview onclick collapse/expand doesn't work when DOM elements are inserted instead.


Piotr Obrebski staff answered a year ago

Hi joel.jdesignera,

Right now this is not possible by default because this feature was recently created and is still developed. To re-initialize treeview, you will have to add its core js code from mdb.js to your script after adding elements to DOM. I will make sure that this will be supported by default in the future.

Best Regards, Piotr


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.8.4
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No
Tags