MenuBarItem interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface MenuBarItem

A menu item.

Properties

kind

readonly kind: "item";

No documentation.

key

readonly key: string;

Stable while the bar's declaration keeps the entry; pass the item to MenuBarController.

label

readonly label: string;

No documentation.

accessKey

readonly accessKey?: string;

The access key, upper case, when the item has one.

accessKeyIndex

readonly accessKeyIndex: number;

The access key's UTF-16 index in label, or -1.

commandId

readonly commandId: string;

No documentation.

commandParameter

readonly commandParameter?: string;

No documentation.

enabled

readonly enabled: boolean;

The declaration's IsEnabled, its menus' and its command's CanExecute.

checked

readonly checked?: boolean;

A check or radio item's state; absent for a plain item.

radioGroup

readonly radioGroup?: string;

The radio group of a radio item.

shortcut

readonly shortcut?: string;

The shortcut as parseShortcut reads it, such as Primary+Shift+S; reserved shortcuts are left out.

shortcutText

readonly shortcutText?: string;

The shortcut as the platform shows it: Ctrl+Shift+S on Windows, Shift+Ctrl+S on Linux, ⇧⌘S on macOS.

ariaKeyShortcuts

readonly ariaKeyShortcuts?: string;

The aria-keyshortcuts value, such as Control+Shift+S.