- Source:
Properties:
Name | Type | Argument | Description |
---|---|---|---|
type |
ContextMenuItemTypes | string | Specifies the type of the command. See ContextMenuItemTypes. |
|
name |
string | Specify the human readable name of the command in the menu. This is used as the label for the option. |
|
isHtmlName |
boolean | Should this item be called with .html() instead of .text(). Cannot be used with the accesskey option in the same item. |
|
items |
Object.<string, ContextMenuItem> | Object containing the menu items for creating a submenu. |
|
className |
string | Specifies additional classNames to add to the menu item. Seperate multiple classes by using spaces. |
|
callback |
ContextMenuItemCallback | Specifies the callback to execute if the item is clicked. |
|
icon |
ContextMenuIconCallback | string | Specifies the icon class to set for the item. When using a string icons must be defined in CSS with selectors like |
|
disabled |
ContextMenuItemCallback | boolean | Specifies if the command is disabled ( |
|
visible |
ContextMenuItemCallback | boolean | Specifies if the command is disabled ( |
|
accesskey |
string | Character(s) to be used as accesskey. Considering Note: Accesskeys are treated unique throughout one menu. This means an item in a sub-menu can't occupy the same accesskey as an item in the main menu. |
|
$input |
JQuery |
<nullable> |
The input element if it was build for this item. |
events |
Object.<string, function()> | Events to register on a ContextMenuItem. The contents of the options object are passed as jQuery |
|
value |
string | The value of the |
|
selected |
boolean | string | The selected option of a |
|
radio |
string | Specifies the group of the |
|
options |
string | Specifies the options of the |
|
height |
Number | The height in pixels |
|
items |
Object.<string, ContextMenuItem> | Items to show in a sub-menu. You can nest as many as you like. |