IconMenuItemOptions
Module @netwiv/api/menu · Kind Interface
import { IconMenuItemOptions } from '@netwiv/api/menu';Options for creating a new icon menu item.
Members
Section titled “Members”accelerator?
Section titled “accelerator?”accelerator?: string | undefinedSpecify an accelerator for the new menu item.
action?
Section titled “action?”action?: ((id: string) => void) | undefinedSpecify a handler to be called when this menu item is activated.
enabled?
Section titled “enabled?”enabled?: boolean | undefinedWhether the new menu item is enabled or not.
icon?: MenuIcon | undefinedIcon 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"] }id?: string | undefinedSpecify an id to use for the new menu item.
text: stringThe text of the new menu item.
Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.