metismenu
metismenu copied to clipboard
Possible?
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
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.