Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IContextMenuItemOptions Interface

Declares context menu item settings.

#Declaration

TypeScript
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

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

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.