Skip to content

Conversation

@Menendez-Oscar
Copy link

The added features are, being able to choose what trigger to use (trigger: left/ right) click, and being able to define an action to be performed before the menu shows (onMenu: callback). Both of these were added as options. I also changed how the context menu is constructed.

It can now be constructed like this:

$.contextmenu(selector, menu, options);

or you can use init and attach.

var menu = $.contextmenu();
menu.init( options );
menu.attach(selector', menu);

…n action to eb triggered before the menu is shown (onMenu). Also icons now support jquery ui-icons, see demo2.js for an example.
@Menendez-Oscar
Copy link
Author

Also something that was replaced was the selector parameter in the callback to 'action'. It now gives a json object with the id and text of the menu item selected.

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