Back to Devexpress

IContextMenuItemOptions Interface

aspnetcore-js-devexpress-dot-richedit-45b10899.md

latest2.4 KB
Original Source

IContextMenuItemOptions Interface

Declares context menu item settings.

Declaration

ts
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

ts
beginGroup?: boolean

Property Value

TypeDescription
boolean

true , to display a separator before the item; otherwise, false.

|

disabled Property

Specifies whether the context menu item is disabled.

Declaration

ts
disabled?: boolean

Property Value

TypeDescription
boolean

true , to disable the item; otherwise, false.”

|

icon Property

Specifies the item icon’s identifier.

Declaration

ts
icon?: string

Property Value

TypeDescription
string

An icon identifier.

|

items Property

Provides access to an array of the item’s sub-items.

Declaration

ts
items?: ContextMenuItem[]

Property Value

TypeDescription
ContextMenuItem[]

An array of sub-items.

|

localizationId Property

Specifies an identifier that allows you to localize the item’s text.

Declaration

ts
localizationId?: string

Property Value

TypeDescription
string

The item’s localization identifier.

|

Remarks

If the text property is specified, the item is not localized.

See Also

Angular Application - Custom Localization Strings

text Property

Specifies the item text.

Declaration

ts
text?: string

Property Value

TypeDescription
string

The item text.

|

visible Property

Specifies whether the item is visible in the context menu.

Declaration

ts
visible?: boolean

Property Value

TypeDescription
boolean

true , to display the item; otherwise, false.

|