IContextMenuItemOptions Interface
Declares context menu item settings.
#Declaration
export interface IContextMenuItemOptions
#Remarks
#Properties
#beginGroup Property
Specifies whether an item separator should be displayed before the current item.
#Declaration
beginGroup?: boolean
#Property Value
Type | Description |
---|---|
boolean | true, to display a separator before the item; otherwise, false. |
#disabled Property
Specifies whether the context menu item is disabled.
#Declaration
disabled?: boolean
#Property Value
Type | Description |
---|---|
boolean | true, to disable the item; otherwise, false.” |
#icon Property
Specifies the item icon’s identifier.
#Declaration
icon?: string
#Property Value
Type | Description |
---|---|
string | An icon identifier. |
#items Property
Provides access to an array of the item’s sub-items.
#Declaration
items?: ContextMenuItem[]
#Property Value
Type | Description |
---|---|
Context |
An array of sub-items. |
#localizationId Property
Specifies an identifier that allows you to localize the item’s text.
#Declaration
localizationId?: string
#Property Value
Type | Description |
---|---|
string | The item’s localization identifier. |
#Remarks
If the text property is specified, the item is not localized.
#text Property
Specifies the item text.
#Declaration
text?: string
#Property Value
Type | Description |
---|---|
string | The item text. |
#visible Property
Specifies whether the item is visible in the context menu.
#Declaration
visible?: boolean
#Property Value
Type | Description |
---|---|
boolean | true, to display the item; otherwise, false. |