Interface: IMenuCreationParams
Beta
Properties required to create a Menu
Properties
checked?
optionalchecked?:boolean
Beta
Remarks
Whether the menu should show a checkmark
enabled?
optionalenabled?:boolean
Beta
Remarks
Whether the menu should be enabled or disabled
icon?
optionalicon?:string
Beta
Remarks
Whether the menu should have an icon.
label
实验性label:
string
Beta
Remarks
Localized display text of the menu
sortIndex?
optionalsortIndex?:number
Beta
Remarks
Determines the order of the menu item among its siblings.
tooltip?
optionaltooltip?:string
Beta
Remarks
Whether the menu should have a tooltip.
uniqueId?
optionaluniqueId?:string
Beta
Remarks
Custom unique identifier that will replace random id
