Topic: Treeview - only select children
Denre priority asked 2 years ago
When I check the example in the docs https://mdbootstrap.com/docs/standard/plugins/tree-view/#section-selectable
Clicking on the checkbox opens the next layer
When I open the snippet in the sandbox, clicking the checkbox opens the next layer BUT also selects all children.
I do not want the main category to be selectable, but only the children. What am I doing wrong?
Mateusz Lazaru staff answered 2 years ago
Hi,
Thanks for reporting this! Example in the docs does not work correctly - the snippets show proper behavior of the Treeview plugin. There is no built-in option to allow selecting only children, but I've created a snippet with workaround that may help you.
Parent-Checkbox will always be hidden with this CSS aplied.
https://mdbootstrap.com/snippets/standard/mlazaru/4671743#css-tab-view
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 6.0.1
- Device: Laptop
- Browser: Firefox
- OS: W10
- Provided sample code: No
- Provided link: Yes