PredefinedMenuItem
Defined in: menu/predefinedMenuItem.ts:111
A predefined (native) menu item which has a predefined behavior by the OS or by tauri.
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
setText(
text):Promise<void>
Defined in: menu/predefinedMenuItem.ts:132
Sets the text for this predefined menu item.
string
Promise<void>
text():
Promise<string>
Defined in: menu/predefinedMenuItem.ts:127
Returns the text of this predefined menu item.
Promise<string>
staticnew(opts?):Promise<PredefinedMenuItem>
Defined in: menu/predefinedMenuItem.ts:118
Create a new predefined menu item.
Promise<PredefinedMenuItem>
© 2025 Tauri Contributors. CC-BY / MIT