Dismiss drawer component on key press
Hi,
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!
Tamas
Replies (2)
I have managed to make it work with this:
const drawer = DrawerComponent.getInstance('id_of_drawer')
drawer?.hide()
Is this the right way to do so?
Thanks
Hi,
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.
Regards,
Lauris Stepanovs,
Keenthemes Support Team