Skip to content

SubmenuOptions

Module @netwiv/api/menu · Kind Interface

import { SubmenuOptions } from '@netwiv/api/menu';
enabled?: boolean | undefined

Whether the new menu item is enabled or not.

icon?: MenuIcon | undefined

Icon to be used for the submenu. Note: you may need the image-ico or image-png Cargo features to use this API.

id?: string | undefined

Specify an id to use for the new menu item. Specify an id to use for the new menu.

items?: Entry[] | undefined
text: string

The 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.