Topic: Treeview plugin and documentation issues
Expected behavior
The class name according to the documentation is "Treeview", however the examples from the same documentation do not work.
Actual behavior
They give the error:
Uncaught TypeError: mdb.Treeview is not a constructor at 3061057:3
Resources (screenshots, code snippets etc.) See:
https://mdbootstrap.com/docs/standard/plugins/tree-view/
Custom icons - JavaScript, etc... => "Open in mdb editor"_
Note: It seems to be quite common that in general the documentation needs a complete revision to be in sync with the latest releases of the implementation.
Thanks in advance
cdc answered 4 years ago
It is not possible to re-edit this post, see screenshot
Requires a value in the "version" field but for an empty options list.
Dawid Wajszczuk staff answered 4 years ago
Hi,
Thanks for reporting this. We will try to fix it as soon as possible.
As for not being able to edit post, please try if this also occur in incognito mode. Clearing your browser cache may help as well.
Keep coding,
Dawid
cdc commented 4 years ago
Hi,
Same problem in version 3.6.0:
TypeError: Treeview is not a constructor
I have not been able to integrate it in test, because it is not possible to create a Treeview instance with javascript.
Unfortunately I can't use Treeview since version 3.4.
Version 3.4 is the last version that I can use in my project, because Treeview did not work in the intermediate versions either, as it is a quite evident error I expected this to be solved so it took me a bit to report it.
Please release a fix soon.
Best regards
Dawid Wajszczuk staff commented 4 years ago
Hi. Sorry for this inconvenience. We will try to fix it as soon as possible. Have a nice day.
cdc commented 4 years ago
Hello,
Same problem in version 3.7.1:
TypeError: Treeview is not a constructor
still does not work since version 3.4 :(
All the best
Dawid Wajszczuk staff commented 4 years ago
Hi. Thanks for reporting. Best regards
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 3.5.1
- Device: macbook pro
- Browser: chrome
- OS: big sur
- Provided sample code: No
- Provided link: Yes