Skip to content

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

Open
mc7244 wants to merge 5 commits intojoewalnes:masterfrom
mc7244:beforeopen
Open

Callback beforeOpen to execute code before showing menu (with documentation)#18
mc7244 wants to merge 5 commits intojoewalnes:masterfrom
mc7244:beforeopen

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