Search results

ContextMenuModel

Interface for a class ContextMenu

Properties

beforeClose

EmitType<BeforeOpenCloseMenuEventArgs>

Triggers before closing the menu.

beforeItemRender

EmitType<MenuEventArgs>

Triggers while rendering each menu item.

beforeOpen

EmitType<BeforeOpenCloseMenuEventArgs>

Triggers before opening the menu item.

created

EmitType<Event>

Triggers once the component rendering is completed.

onClose

EmitType<OpenCloseMenuEventArgs>

Triggers while closing the menu.

onOpen

EmitType<OpenCloseMenuEventArgs>

Triggers while opening the menu item.

select

EmitType<MenuEventArgs>

Triggers while selecting menu item.

animationSettings

MenuAnimationSettingsModel

Specifies the animation settings for the sub menu open.

cssClass

string

Defines class/multiple classes separated by a space in the Menu wrapper.

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads.

enableRtl

boolean

Enable or disable rendering component in right to left direction.

filter

string

Specifies the filter selector for elements inside the target in that the context menu will be opened.

items

MenuItemModel[]

Specifies menu items with its properties which will be rendered as ContextMenu.

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

showItemOnClick

boolean

Specifies whether to show the sub menu or not on click. When set to true, the sub menu will open only on mouse click.

target

string

Specifies target element selector in which the ContextMenu should be opened.