navgoco icon indicating copy to clipboard operation
navgoco copied to clipboard

Howto open subtree and link with one click

Open DonWolli opened this issue 8 years ago • 1 comments

I want to open the submenu AND the link in submenus parent(mainmenuitem1) at the same time with ONE click on the line containing the main menu item. How can I do that with navgoco?

mainmenuitem 1 submenuitem 1 submenuitem 2

DonWolli avatar Oct 13 '16 12:10 DonWolli

I have the same question. When a user clicks a link to a page, the menu should automatically add an open class to all parent items. I'm adding this script below my sidebar:

<script>$("li.open").parents('li').toggleClass("open");</script>

It works but the result is a flicker when the page loads. First the menu opens all the way, and then the class gets applied and the menu opens properly. I want the class loaded before the menu displays. How do I do that?

tomjoht avatar Jan 14 '17 22:01 tomjoht