metismenu icon indicating copy to clipboard operation
metismenu copied to clipboard

Possible?

Open jreason opened this issue 8 years ago • 1 comments

Hi,

When my page loads, all of the menu items are collapsed by default. If one of the collapsed menu's contains the active link, is it possible to find this link and uncollapse the menu to show it?

Thanks

jreason avatar Aug 12 '16 15:08 jreason

Hi @jreason, You can do it by putting a mark to active link, and simulates click event tracing parent with jquery. For example, if you put active_link class to child item;

// .active_link ^ li ^ ul > a
$('.active_link').parent().parent().prev().click();

This workaround may help you.

alpertuna avatar Aug 21 '16 22:08 alpertuna