콘텐츠로 이동

MenuItemOptions

이 콘텐츠는 아직 번역되지 않았습니다.

Module @netwiv/api/menu · Kind Interface

import { MenuItemOptions } from '@netwiv/api/menu';

Options for creating a new menu item.

accelerator?: string | undefined

Specify an accelerator for the new menu item.

action?: ((id: string) => void) | undefined

Specify a handler to be called when this menu item is activated.

enabled?: boolean | undefined

Whether the new menu item is enabled or not.

id?: string | undefined

Specify an id to use for the new menu item.

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.