Skip to content

API Reference / @gtkx/components / MenuEntry

Type Alias: MenuEntry

MenuEntry = object

Defined in: types.d.ts:58

Declarative description of a single menu item, optionally nesting a submenu or section.

Properties

action?

optional action?: string

Defined in: types.d.ts:62

Action name activated when the item is chosen, for example "app.quit".


label?

optional label?: string

Defined in: types.d.ts:60

Text shown for the item.


section?

optional section?: MenuEntry[]

Defined in: types.d.ts:66

Nested entries grouped as a visually separated section.


optional submenu?: MenuEntry[]

Defined in: types.d.ts:64

Nested entries shown as a submenu opened from this item.

Released under the MPL-2.0 License.