Topic: Treview close structure

kaz priority asked 4 years ago


Hi

I want to use the TreeView component but if I expand the first one, then expand the second one is it possible for the first one to close automatically like the accordion?

The TreeView will work better than the accordion for my project. I am using the latest version of MDB (4.8.7)

Thanks Kaz


MDBootstrap staff answered 4 years ago


Hi kaz,

This functionality is not something we would like to add directly to this component. Everyone can implement such behaviour to any component on their own.

Best Regards, Piotr


kaz priority answered 4 years ago


Hi Piotr

Thank you for your reply.

How about keeping the selected one (sub-links) expanded on page reloads?

Thanks Kaz


MDBootstrap staff answered 4 years ago


Hi kazosman,

I designed this component to work as a regular treeview (example: VSCode). This should open and close designed section on click. If you want to change the behaviour of this component you would have to change some js code in treeview.js and recompile it to mdb.js using gulp or just changing the js code in mdb.js to serve your needs.

If you need additional help or you would like to get more information about this component I am here to help.

Best Regards, Piotr

PS We are creating mdb for our users. If there will be more people that request this treeview functionality We can make it a part of our package.



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: Other
  • MDB Version: -
  • Device: All
  • Browser: All browsers
  • OS: All
  • Provided sample code: No
  • Provided link: No