IContextMenuItemOptions Interface
In This Article
Declares context menu item settings.
#Declaration
TypeScript
export interface IContextMenuItemOptions
#Remarks
#Properties
#beginGroup Property
Specifies whether an item separator should be displayed before the current item.
#Declaration
TypeScript
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
TypeScript
disabled?: boolean
#Property Value
Type | Description |
---|---|
boolean | true, to disable the item; otherwise, false.” |
#icon Property
Specifies the item icon’s identifier.
#Declaration
TypeScript
icon?: string
#Property Value
Type | Description |
---|---|
string | An icon identifier. |
#items Property
Provides access to an array of the item’s sub-items.
#Declaration
TypeScript
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
TypeScript
localizationId?: string
#Property Value
Type | Description |
---|---|
string | The item’s localization identifier. |
#Remarks
If the text property is specified, the item is not localized.
See Also
#text Property
Specifies the item text.
#Declaration
TypeScript
text?: string
#Property Value
Type | Description |
---|---|
string | The item text. |
#visible Property
Specifies whether the item is visible in the context menu.
#Declaration
TypeScript
visible?: boolean
#Property Value
Type | Description |
---|---|
boolean | true, to display the item; otherwise, false. |