Item | context-menu

### Hierarchy

- Entry
- Element
  - Item

### Implemented by

- AbstractItem
- Checkbox
- Command
- Label
- Radio
- Submenu

## Index

### Methods

- disable
- enable
- focus
- generateHtml
- getContent
- getHtml
- getId
- getMenu
- getType
- hide
- isHidden
- press
- setHtml
- setMenu
- show
- unfocus

## Methods

### disable

- disable(): void

- - Defined in item.ts:61

  Disable item by greying it out.

  #### Returns void

### enable

- enable(): void

- - Defined in item.ts:66

  Enable item.

  #### Returns void

### focus

- focus(): void

- - Defined in item.ts:51

  Setting focus to the menu item.

  #### Returns void

### generateHtml

- generateHtml(): void

- Inherited from Element.generateHtml

  - Defined in element.ts:44

  Forces generation of the actual DOM element.

  #### Returns void

### getContent

- getContent(): string

- - Defined in item.ts:36

  #### Returns string

  The content message of this item.

### getHtml

- getHtml(): HTMLElement

- Inherited from Element.getHtml

  - Defined in element.ts:34

  Generates the DOM element if it does not yet exists and returns it.

  #### Returns HTMLElement

  The HTML element associated with this entry.

### getId

- getId(): string

- - Defined in item.ts:41

  #### Returns string

  The id of this item.

### getMenu

- getMenu(): Menu

- Inherited from Entry.getMenu

  - Defined in entry.ts:34

  #### Returns Menu

  The menu the entry belongs to.

### getType

- getType(): string

- Inherited from Entry.getType

  - Defined in entry.ts:45

  #### Returns string

  The type of the entry.

### hide

- hide(): void

- Inherited from Entry.hide

  - Defined in entry.ts:50

  Hide entry in the menu.

  #### Returns void

### isHidden

- isHidden(): boolean

- Inherited from Entry.isHidden

  - Defined in entry.ts:60

  #### Returns boolean

  Indicates if item is hidden from display.

### press

- press(): void

- - Defined in item.ts:46

  Pressing the menu item.

  #### Returns void

### setHtml

- setHtml(element: HTMLElement): void

- Inherited from Element.setHtml

  - Defined in element.ts:39

  #### Parameters

  - ##### element: HTMLElement

    Sets the HTML Element.

  #### Returns void

### setMenu

- setMenu(menu: Menu): void

- Inherited from Entry.setMenu

  - Defined in entry.ts:40

  Sets the parent menu for this entry.

  #### Parameters

  - ##### menu: Menu

    The menu the entry is attached to.

  #### Returns void

### show

- show(): void

- Inherited from Entry.show

  - Defined in entry.ts:55

  Show entry in the menu.

  #### Returns void

### unfocus

- unfocus(): void

- - Defined in item.ts:56

  Unfocusing the menu item.

  #### Returns void

Generated using TypeDoc