interface MenuItem {
    chord?: string;
    danger?: boolean;
    disabled?: boolean;
    icon?: string;
    id?: string;
    keepOpen?: boolean;
    kind?: "item";
    label: string;
    mark?: "check" | "radio";
    note?: string;
    on?: boolean;
    run(): void;
}

Properties

chord?: string

Chord hint, shown at the right.

danger?: boolean
disabled?: boolean
icon?: string

Chrome icon id, or inline SVG markup starting with <svg.

id?: string

Stable id, for tests and for a host that wants to find a row.

keepOpen?: boolean

Keep the menu up after running (a switch the user may flip twice).

kind?: "item"
label: string
mark?: "check" | "radio"

A switch (tick) or one option of a choice (dot).

note?: string

Why a disabled row is disabled; an empty greyed row reads as a bug.

on?: boolean

Methods