Interface: Item

Item

Source:

Extends

Methods

disable()

Disable item by greying it out.
Source:

enable()

Enable item.
Source:

focus()

Setting focus to the menu item.
Source:

generateHtml()

Forces generation of the actual DOM element.
Inherited From:
Source:

getContent() → {string}

Source:
Returns:
The content message of this item.
Type
string

getHtml() → {HTMLElement}

Generates the DOM element if it does not yet exists and returns it.
Inherited From:
Source:
Returns:
The HTML element associated with this entry.
Type
HTMLElement

getId() → {string}

Source:
Returns:
The id of this item.
Type
string

getMenu() → {Menu}

Inherited From:
Source:
Returns:
The menu the entry belongs to.
Type
Menu

getType() → {string}

Inherited From:
Source:
Returns:
The type of the entry.
Type
string

hide()

Hide entry in the menu.
Inherited From:
Source:

isHidden() → {boolean}

Inherited From:
Source:
Returns:
Indicates if item is hidden from display.
Type
boolean

press()

Pressing the menu item.
Source:

setHtml(element)

Parameters:
Name Type Description
element HTMLElement Sets the HTML Element.
Inherited From:
Source:

setMenu(menu)

Sets the parent menu for this entry.
Parameters:
Name Type Description
menu Menu The menu the entry is attached to.
Inherited From:
Source:

show()

Show entry in the menu.
Inherited From:
Source:

unfocus()

Unfocusing the menu item.
Source: