Topic: Treetable not loadable dynamically
lartillotb priority asked 3 months ago
Treetable works fine when created in plain HTML before loading MDB scripts
But when adding a treetable to the DOM in JS function, I can't find a function or constructor (ie new mdb.Treetable(tb)...) to initialize it and it doesn't work in this case.
Kamila Pieńkowska staff answered 3 months ago
The constructor is new Treetable
- without mdb
prefix.
You can find constructors for every component and plugin in Usage
section of 'API` tab.
Example: https://mdbootstrap.com/docs/standard/plugins/treetable/#api-section-usage
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Priority
- Premium support: Yes
- Technology: MDB Standard
- MDB Version: MDB5 7.3.2
- Device: Any
- Browser: Any
- OS: Any
- Provided sample code: No
- Provided link: No