Is there a way I can programatically close a context menu in jsTree? I implemented a way to open the context menus on hover using show_contextmenu but I need to close it when the mouse leaves
Ok, looking through the code I found what I needed, there is a property called hide_on_mouseleave which I just set to true in the source and it started working as expected.
If that doesn't work, this is the code used to close the context menu executed when hide_on_mouseleave property is true:
$.vakata.context.hide();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With