SlickNav icon indicating copy to clipboard operation
SlickNav copied to clipboard

set a active element

Open reste2000 opened this issue 10 years ago • 3 comments

Is it possible to set a active element in the navigation to preopen the navigation?

reste2000 avatar Apr 10 '14 07:04 reste2000

@reste2000, depending on your setup you could simply use the method $('.menu').slicknav('open') to open the menu when needed via javascript. If you check the readme, there are also methods to close and toggle the menu.

ComputerWolf avatar Apr 10 '14 14:04 ComputerWolf

Thank's for your answer. But I want also to open the second node in my navigation. For example the "Sub2" in "Menu1"

reste2000 avatar Apr 10 '14 15:04 reste2000

Any update to this? I would also be interested in this answer!

JoeFinan avatar Jan 21 '15 21:01 JoeFinan