接口 IMenu实验性

interface IMenu {
    checked?: boolean;
    enabled: boolean;
    id: string;
    submenu: IMenu[];
    addItem(params: IMenuCreationParams, action?: RegisteredAction<NoArgsAction>): IMenu;
    dispose(): void;
    hide(): void;
    replaceAction(action: RegisteredAction<NoArgsAction>): void;
    show(): void;
}

属性

checked?: boolean

If defined, the menu will show a checked or unchecked checkbox.

enabled: boolean

The menu will be in either an enabled or disabled state

id: string

Unique ID for the menu

submenu: IMenu[]

Sub menus of this menu

方法