ContextMenuManager

Description

ContextMenuManager

Variables Summary

Functions Summary

Classes Summary

Variables

Public API

BEFORE

Insertion position constants Used by addMenuItem() to specify the relative position of a newly created menu object

_menuDividerIDCount

Return a new divider id

Functions

Public API

addContextMenu

Add ContextMenu

id string
Unique identifier for ContextMenu.
anchor string
JQuery selector string where context menu will be applied.
Returns: ContextMenu
ContextMenu Object
Public API

getAllContextMenus

Return All ContextMenu Objects

Returns: Array.<ContextMenu>
Array of all ContextMenu Objects.
Public API

getContextMenu

Get ContextMenu Object

id string
Unique identifier for ContextMenu.
Returns: ContextMenu
ContextMenu Object
Public API

removeContextMenu

Remove ContextMenu

id string
Unique identifier for ContextMenu.

Classes

Constructor

ContextMenuEntry

ContextMenuEntry

Methods

Methods

Private

_addToPosition

Add dataItem to a specific position

addMenuDivider

Add Divider

position string
relativeId string
Returns: ContextMenuItem

addMenuItem

Add ContextMenu Item

command string,Command
keyBindings nullable
position string
relativeId string
Returns: ContextMenuItem
Constructor

ContextMenu

ContextMenu

id string
Methods

Methods

_initializeMenuItems

Initialize ContextMenu items. For all items, assign this.$element and add data-id attribute, and delete data-data attribute.

_selected

Select handler

close

Close ContextMenu

getMenuItem

Get Menu Item

id string
Returns: ContextMenuItem
Constructor

ContextMenuItem

ContextMenuItem Object

Methods

Methods

_checkedChanged

Synchronizes MenuItem checked state with underlying Command checked state

_enabledChanged

Synchronizes MenuItem enabled state with underlying Command enabled state

Private

_keyBindingAdded

Private

_keyBindingRemoved

_nameChanged

Synchronizes MenuItem name with underlying Command name

_visibleChanged

Synchronizes MenuItem visible state with underlying Command visible state