AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

AdminLTE-v3 Close first treeview if second treeview clicked

Open adamkenway007 opened this issue 7 years ago • 2 comments

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

adamkenway007 avatar Mar 20 '19 13:03 adamkenway007

You will probably have to write your own jquery function to do that work and remove the menu-open class from the previous treeview

jfcaldeira avatar Apr 13 '19 21:04 jfcaldeira

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>

REJack avatar May 18 '19 10:05 REJack