Hi.
I'm using Metronic 7 HTML and I want to programatically close left-aside-menu when on mobile device. So far I was able to get menu object like this:
let menuElement = document.querySelector("#kt_aside_menu");
let menu = KTMenu.getInstance(menuElement);
Finally I used :
let asideMenu = KTDrawer.getInstance($("#kt_aside")[0]);
asideMenu.hide();
Hi ,
Glad that it worked. if you need any further clarification please do let us know.
Regards,
Sean
Hi,
You can use KTOffcanvas's hide()
method to close the menu container by referring to Metronic v7 KTOffcanvas.
If you need any further help please let us know.
Regards.