We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would be nice to have an eventHandler to catch when the menu closes.
This helps with some cleanups and more global post-action procedures.
Currently the only option would be to put repetitive code under each action.
Something like so...
onClose: function($elem) { alertify.notify("Done with : " + $elem.text()); },
By adding:
/* user-defined function to execute parting methods against opened element...*/ onClose: _.noop,
And further down // close the context menu
BootstrapMenu.prototype.close = function() { // hide the menu if (this.$openTarget) { this.options.onClose(this.$openTarget) }; this.$menu.hide(); clearCloseEventListeners(this); };
This is rough, but I've added it for my own purposes.
The text was updated successfully, but these errors were encountered:
That's a good idea, I'm happy to accept a PR if you want to give it a try. Otherwise, I'll take a look at it during the following days
Sorry, something went wrong.
No branches or pull requests
Would be nice to have an eventHandler to catch when the menu closes.
This helps with some cleanups and more global post-action procedures.
Currently the only option would be to put repetitive code under each action.
Something like so...
By adding:
And further down
// close the context menu
This is rough, but I've added it for my own purposes.
The text was updated successfully, but these errors were encountered: