Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Item

Hierarchy

Implemented by

Index

Methods

disable

  • disable(): void
  • Disable item by greying it out.

    Returns void

enable

  • enable(): void

focus

  • focus(): void
  • Setting focus to the menu item.

    Returns void

generateHtml

  • generateHtml(): void

getContent

  • getContent(): string
  • Returns string

    The content message of this item.

getHtml

  • getHtml(): HTMLElement
  • 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
  • Returns string

    The id of this item.

getMenu

getType

  • getType(): string

hide

  • hide(): void

isHidden

  • isHidden(): boolean

press

  • press(): void
  • Pressing the menu item.

    Returns void

setHtml

  • setHtml(element: HTMLElement): void

setMenu

  • setMenu(menu: Menu): void
  • Sets the parent menu for this entry.

    Parameters

    • menu: Menu

      The menu the entry is attached to.

    Returns void

show

  • show(): void

unfocus

  • unfocus(): void
  • Unfocusing the menu item.

    Returns void

Generated using TypeDoc