Plugins

Context Menu

Management facility for context(right click) menus.

Requirements

<script src="js/vendor/jquery.contextMenu.min.js"></script>

Example

Javascript
jQuery.contextMenu({
  selector: '#contextMenuBasic',
  animation: {duration: 0},
  callback: function (key, options) {
    console.log('clicked: ' + key);
  },
  items: {
    copy: {name: 'Copy'},
    archive: {name: 'Archive'},
    delete: {name: 'Delete'},
  },
});
Html
<div id="contextMenuBasic">
  Right Click
</div>

More Examples

You may find more examples in Interface.Plugins.ContextMenu.html file which is initialized by js/plugins/contextmenu.js.

Documentation