UI context menu with support for grouped items, nested submenus, context-sensitive titles, and context-sensitive enabled/visible state.

Item actions and state resolvers receive the current context.

Hierarchy (View Summary)

Constructors

Accessors

Methods

  • Subscribes to a menu event.

    Supported events currently include:

    • "shown"
    • "hidden"

    Parameters

    • event: string

      Event name.

    • callback: EventCallback

      Subscriber callback.

    Returns void