GateMenuItem(type, contextMenu)

Menu item that has a custom click callback function that adds a Gate of the specified type to the App

new GateMenuItem(type, contextMenu)

Parameters:
Name Type Description
type string

type of the gate Gate (and, or, ...)

contextMenu ContextMenu

instance of the ContextMenu that this item belongs to

Extends

Members

$el :jQuery.element

jQuery element representing DOM content of this menu item

Overrides:

$submenu :jQuery.element

jQuery element containing the submenu (or undefined, if item has no subitems)

Overrides:

appInstance :App

instance of App this menu belongs to

Overrides:

contextMenu :ContextMenu

instance of the ContextMenu this item belongs to

Overrides:

itemCount :Number

submenu item counter

Overrides:

jQuery

get jQuery element of this menu item

Overrides:

length

number of items in the submenu

Overrides:

text :string

text on the button

Overrides:

Methods

addClass(cls)

add a CSS class to this item

Parameters:
Name Type Description
cls string

[description]

Overrides:

appendItem(item)

append a nested ContextMenuItem to this item

Parameters:
Name Type Description
item ContextMenuItem

item that will be appended

Overrides: