Hierarchy

Constructors

  • Parameters

    • screen: default
    • allowNoMenus: boolean = false

    Returns default

Properties

all: Record<number, default> = {}
allowNoMenus: boolean = false
chain: default[] = []

Accessors

  • get screen(): default
  • Returns default

  • get visible(): undefined | default
  • Returns the visible menu (top of the chain)

    Returns undefined | default

Methods

  • Returns a promise that resolves when the given screen is shown.

    Type Parameters

    Parameters

    • menuId: MENU

    Returns Promise<MenuById[MENU]>

  • Returns false | void | Promise<void>

  • Returns void | Promise<void>

  • Returns default

  • Gets the menu by the given ID, initializing it if it does not already exist.

    Type Parameters

    Parameters

    • menuId: ID

    Returns MenuById[ID]

  • Parameters

    Returns default

  • Sets the visible menu to be the new top menu. (Removes super-menus, keeps sub-menus)

    Returns default

  • Sets the given menu to be the new top menu. (Removes super-menus, keeps sub-menus)

    Parameters

    Returns default

  • Type Parameters

    Parameters

    • menu: MENU
    • Optional menuInitializer: ((menu: MENU extends MenuId ? MenuById[MENU] : MENU) => any)

    Returns void | Promise<void>

Generated using TypeDoc