Metronic Aside menu toggle from another button
Hi,
Is there any method to toggle the aside menu from another button? I want to minimize the aside menu on some pages with function.
Thanks
Replies (1)
Hi,
You can refer to Bootstrap KTToggle API documentation here.
var toggleElement = document.querySelector("#kt_toggle_example_1");
var toggle = KTToggle.getInstance(toggleElement);
toggle.enable();
toggle.disable()
toggle.toggle();
Regards.