Skip to content
New issue

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

Callback beforeOpen to execute code before showing menu (with documentation) #18

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mc7244
Copy link

@mc7244 mc7244 commented Nov 14, 2013

This adds a callback which can be provided with:

$("#whatever").contextPopup({
    beforeOpen : function(e) {
    // ..
});

This is very useful in situation where you want to change something before actually showing the menu. For example I use it to select a table row (i.e. paint it orange) before showing the menu for it.

Documentation is included in the header and in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant