Properties that can be passed into the constructor for menus/MenuItem!MenuItem.

interface MenuItemProperties {
    action?: Action;
    alternate?: MenuItemState;
    description?: string;
    failureMode?: FailureMode;
    hideOnDisable?: boolean;
    iconId?: string;
    id?: string;
    isEnabled?: boolean;
    isToggled?: boolean;
    submenu?: MenuProperties | Menu<MenuItemProperties, MenuProperties, MenuItem<MenuItemProperties, MenuProperties>>;
    title?: string;
}

Hierarchy (view full)

Properties

action?: Action
alternate?: MenuItemState
description?: string
failureMode?: FailureMode
hideOnDisable?: boolean
iconId?: string
id?: string

The unique ID to assign to the entity. If not specified, one will be generated.

isEnabled?: boolean
isToggled?: boolean
title?: string