Represents an individual item used in menus and context menus.

Hierarchy

  • MenuItem

Constructors

Properties

Constructors

Properties

click?: ((menuItem: MenuItem) => void)

Type declaration

    • (menuItem: MenuItem): void
    • Callback for when the menu item is clicked.

      Parameters

      Returns void

icon?: string

Image to be displayed.

id?: string

Unique identifier for the menu item.

label?: string

Text to be displayed.

submenu?: MenuItem[]