Interface. Menu Item
readonlyoptionalicon:string
Defined in: packages/sprotty/src/base/actions/action.ts:25
readonlyid:string
Defined in: packages/sprotty/src/features/context-menu/context-menu-service.ts:20
Technical id of the menu item.
readonlyoptionalisEnabled: () =>boolean
Defined in: packages/sprotty/src/features/context-menu/context-menu-service.ts:32
Function determining whether the element is enabled.
boolean
readonlyoptionalisToggled: () =>boolean
Defined in: packages/sprotty/src/features/context-menu/context-menu-service.ts:36
Function determining whether the element is toggled on or off.
boolean
readonlyoptionalisVisible: () =>boolean
Defined in: packages/sprotty/src/features/context-menu/context-menu-service.ts:34
Function determining whether the element is visible.
boolean
readonlylabel:string
Defined in: packages/sprotty/src/base/actions/action.ts:25
readonlyoptionalparentId:string
Defined in: packages/sprotty/src/features/context-menu/context-menu-service.ts:30
The optional parent id can be used to add this element as a child of another element provided by anohter menu provider.
The parentId must be fully qualified in the form of a.b.c, whereas a, b and c are referring to the IDs of other elements.
Note that this attribute will only be considered for root items of a provider and not for children of provided items.
readonlyoptionalsortString:string
Defined in: packages/sprotty/src/features/context-menu/context-menu-service.ts:22
String indicating the order.