Topic: Treeview plugin and documentation issues

cdc free asked 3 years ago

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:

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 advanceenter image description hereenter image description here

Dawid Wajszczuk staff answered 3 years ago


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,

cdc free commented 3 years ago


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 3 years ago

Hi. Sorry for this inconvenience. We will try to fix it as soon as possible. Have a nice day.

cdc free commented 3 years ago


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 3 years ago

Hi. Thanks for reporting. Best regards

cdc free answered 3 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.

enter image description here

enter image description here

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: 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