Skip to content
Tauri

MenuItemOptions

Defined in: menu/menuItem.ts:9

Options for creating a new menu item.

optional accelerator: string

Defined in: menu/menuItem.ts:17

Specify an accelerator for the new menu item.


optional action: (id) => void

Defined in: menu/menuItem.ts:19

Specify a handler to be called when this menu item is activated.

string

void


optional enabled: boolean

Defined in: menu/menuItem.ts:15

Whether the new menu item is enabled or not.


optional id: string

Defined in: menu/menuItem.ts:11

Specify an id to use for the new menu item.


text: string

Defined in: menu/menuItem.ts:13

The text of the new menu item.


© 2025 Tauri Contributors. CC-BY / MIT