接口 IMenuCreationParams实验性

Properties required to create a Menu

interface IMenuCreationParams {
    checked?: boolean;
    enabled?: boolean;
    label: string;
    uniqueId?: string;
}

属性

checked?: boolean

Whether the menu should show a checkmark

enabled?: boolean

Whether the menu should be enabled or disabled

label: string

Localized display text of the menu

uniqueId?: string

Custom unique identifier that will replace random id