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);
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.
Finally I used :
let asideMenu = KTDrawer.getInstance($("#kt_aside"));