Interface MenuItem

Represents a menu item.

Hierarchy

  • MenuItem

Properties

items: MenuItem[]

If this item has a submenu, this property contains its subitems.

title: string

The title of the menu item.

selected: boolean

Whether this item is selected (with a checkmark).

enabled: boolean

Whether this item is enabled.

action: ((item: MenuItem) => void)

Type declaration

    • (item: MenuItem): void
    • The callback function to be called when the item is clicked.

      Parameters

      Returns void

Methods

Generated using TypeDoc