AdminLTE
AdminLTE copied to clipboard
AdminLTE-v3 Close first treeview if second treeview clicked
Environment:
- AdminLTE Version: AdminLTE v3.0.0-beta.
- Operating System: All OS
- Browser (Version): Any Browser
Description:
as default adminlte3-dev make treeview always open when clicked and close if clicked again at same place but my problem it's my first treeview won't close if i click at another treeview
i wish i can make it same as default feature adminlte2 which will work on adminlte3 sorry for my bad english
You will probably have to write your own jquery function to do that work and remove the menu-open class from the previous treeview
You only need to add or change the data-accordion to true beside data-widget="treeview" like
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="true">
...
</ul>