Documentation
Register new contextMenu
To register a new contextMenu:
- Note: For SVG support use jQuery >= 1.12|2.2
$.contextMenu( options );
Update contextMenu state
It is possible to refresh the state of the contextmenu disabled, visibility, icons and input values through the update
command. This will reevaluate any custom callbacks.
$('.context-menu-one').contextMenu('update'); // update single menu
$.contextMenu('update') // update all open menus
Options (at registration)
For documentation on possible options, check out the API documentation of ContextMenuOptions.