MenuBarMenu interface

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

interface MenuBarMenu

A menu of the bar, or a submenu.

Properties

kind

readonly kind: "menu";

No documentation.

key

readonly key: string;

Stable while the bar's declaration keeps the entry; use it as the component key.

label

readonly label: string;

The visible title; it ends with the access key in parentheses when the title does not contain it, as Help (H).

accessKey

readonly accessKey?: string;

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

accessKeyIndex

readonly accessKeyIndex: number;

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

role

readonly role: "none" | "application" | "file" | "help";

The declared role. This set is open: a later version may add values; render unknown ones as "none".

enabled

readonly enabled: boolean;

The declaration's IsEnabled, with its parents'.

entries

readonly entries: readonly MenuBarEntry[];

No documentation.