interface MenuRow {
    danger?: boolean;
    disabled?: boolean;
    icon?: string;
    key?: string;
    label: string;
    on?: boolean;
    onSelect: () => void;
    sub?: string;
}

Properties

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

A chrome icon id for a glyph before the label. Once one row has a glyph, every row keeps the column, so the labels share a left edge; an id the registry does not carry leaves its slot empty. Since 2.5.10.

key?: string

Shown at the right edge, for a chord.

label: string
on?: boolean

Makes the row one of a set of choices, true for the current one; a row without it is an action.

onSelect: () => void
sub?: string