Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

How to get menu level on 'onExpandMenuStart' and 'onCollapseMenuStart'? #183

Open
mehmetalidumlu opened this issue Dec 11, 2017 · 1 comment

Comments

@mehmetalidumlu
Copy link

Hi,
I cant catch root menu is open or close. I want hide or show a html element when root menu is opening or closing. 'onExpandMenuStart' and 'onCollapseMenuStart' event is run all menu process and returns only 'options' parameters in function.

How can get menu level which it is processing?

Thanks...

@adgsm
Copy link
Owner

adgsm commented Dec 11, 2017

/**
 * Active (last expanded) menu level
 * Returns active menu level object, or false if menu is fully collapsed
 */
$('#menu').multilevelpushmenu('activemenu');

Please note "data-level" attribute in returned object.

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

No branches or pull requests

2 participants