Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Howto open subtree and link with one click #38

Open
DonWolli opened this issue Oct 13, 2016 · 1 comment
Open

Howto open subtree and link with one click #38

DonWolli opened this issue Oct 13, 2016 · 1 comment

Comments

@DonWolli
Copy link

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

@tomjoht
Copy link

tomjoht commented Jan 14, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants