Optional
iconIcon to be used for the new icon menu item.
Note that you may need the image-ico
or image-png
Cargo features to use this API.
To enable it, change your Cargo.toml file:
[dependencies]
tauri = { version = "...", features = ["...", "image-png"] }
Optional
idSpecify an id to use for the new menu item.
The text of the new menu item.
Optional
enabledWhether the new menu item is enabled or not.
Optional
acceleratorSpecify an accelerator for the new menu item.
Optional
actionSpecify a handler to be called when this menu item is activated.
Options for creating a new icon menu item.