Topic: Treeview Animated Javascript/jQuery re-initialize?

joel.jdesignera pro asked 5 years 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.

MDBootstrap staff answered 5 years 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.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.8.4
  • Device: Desktop
  • Browser: Chrome
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No