All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.

IContextMenuItemOptions Interface

Declares context menu item settings.

Declaration

export interface IContextMenuItemOptions

Remarks

Run Demo: Context Menu Customization

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
ContextMenuItem[]

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.

See Also

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.