JSDoc: Interface: Item

# Interface: Item

## Item

Source:
  - item.js, line 28

### Extends

- Entry
- Element

### Methods

#### disable()

Disable item by greying it out.

Source:
  - item.js, line 58

#### enable()

Enable item.

Source:
  - item.js, line 63

#### focus()

Setting focus to the menu item.

Source:
  - item.js, line 48

#### generateHtml()

Forces generation of the actual DOM element.

Inherited From:
  - Element#generateHtml
Source:
  - element.js, line 41

#### getContent() → {string}

Source:
  - item.js, line 33

##### 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:
  - Element#getHtml
Source:
  - element.js, line 31

##### Returns:

The HTML element associated with this entry.

Type
  HTMLElement

#### getId() → {string}

Source:
  - item.js, line 38

##### Returns:

The id of this item.

Type
  string

#### getMenu() → {Menu}

Inherited From:
  - Entry#getMenu
Source:
  - entry.js, line 30

##### Returns:

The menu the entry belongs to.

Type
  Menu

#### getType() → {string}

Inherited From:
  - Entry#getType
Source:
  - entry.js, line 41

##### Returns:

The type of the entry.

Type
  string

#### hide()

Hide entry in the menu.

Inherited From:
  - Entry#hide
Source:
  - entry.js, line 46

#### isHidden() → {boolean}

Inherited From:
  - Entry#isHidden
Source:
  - entry.js, line 56

##### Returns:

Indicates if item is hidden from display.

Type
  boolean

#### press()

Pressing the menu item.

Source:
  - item.js, line 43

#### setHtml(element)

##### Parameters:

Name | Type | Description
--- | --- | ---
`element` | HTMLElement | Sets the HTML Element.

Inherited From:
  - Element#setHtml
Source:
  - element.js, line 36

#### setMenu(menu)

Sets the parent menu for this entry.

##### Parameters:

Name | Type | Description
--- | --- | ---
`menu` | Menu | The menu the entry is attached to.

Inherited From:
  - Entry#setMenu
Source:
  - entry.js, line 36

#### show()

Show entry in the menu.

Inherited From:
  - Entry#show
Source:
  - entry.js, line 51

#### unfocus()

Unfocusing the menu item.

Source:
  - item.js, line 53