Dismiss drawer component on key press
I would like to dismiss a drawer component on keypress. What is the function to be called to dismiss a metronic drawer from code?
Thanks in advance!
I have managed to make it work with this:
const drawer = DrawerComponent.getInstance('id_of_drawer')
Is this the right way to do so?
Glad to hear that you already figurated this out. All the best with your project!
Let me know if you will need any additional help.
Keenthemes Support Team