MenuItem
Defined in: menu/menuItem.ts:23
A menu item inside a Menu or Submenu and contains only text.
MenuItemBase
get id():
string
Defined in: menu/base.ts:128
The id of this item.
string
MenuItemBase.id
get rid():
number
Defined in: core.ts:309
number
MenuItemBase.rid
close():
Promise<void>
Defined in: core.ts:321
Destroys and cleans up this resource from memory. You should not call any method on this object anymore and should drop any reference to it.
Promise<void>
MenuItemBase.close
isEnabled():
Promise<boolean>
Defined in: menu/menuItem.ts:49
Returns whether this menu item is enabled or not.
Promise<boolean>
setAccelerator(
accelerator):Promise<void>
Defined in: menu/menuItem.ts:63
Sets the accelerator for this menu item.
null | string
Promise<void>
setEnabled(
enabled):Promise<void>
Defined in: menu/menuItem.ts:54
Sets whether this menu item is enabled or not.
boolean
Promise<void>
setText(
text):Promise<void>
Defined in: menu/menuItem.ts:40
Sets the text for this menu item.
string
Promise<void>
text():
Promise<string>
Defined in: menu/menuItem.ts:35
Returns the text of this menu item.
Promise<string>
staticnew(opts):Promise<MenuItem>
Defined in: menu/menuItem.ts:30
Create a new menu item.
Promise<MenuItem>
© 2025 Tauri Contributors. CC-BY / MIT