Skip to content

JavaScript Contextmenu Quick Reference

PropertyDescription
items: Array of objectsArray of item object descriptions.
onclick: functionGlobal onclick event. function(instance, event)
PropertyDescription
type: stringContext menu item type: line | divisor | default
icon: stringContext menu icon key. (Material icon key icon identification)
id: stringHTML id property of the item DOM element
disabled: booleanThe item is disabled
onclick: function(element: HTMLElement, event: e) : voidSpecific onclick event for the element.
shortcut: stringA short description or instruction for the item. Normally a shortcut.
tooltip: stringShow this text when the user mouse over the element
submenu: Array of objectsSubmenu items