ContextMenuProps
Represents the props of the ContextMenu component.
Definition
Package:@progress/kendo-vue-layout
Properties
Specifies a component, render function, or slot name for trailing actions on each Menu item.
Receives { item, itemId }. An item-level actionsRender overrides this setting.
className?
string
Adds a custom className to the Menu top element.
customCloseItemIds?
string[]
Sets the ids of the Menu items that will not be closed on mouse-leave. The ids are hierarchical and zero-based. The first root item has a 0 id. If the first root item has children, the first child item acquires a 0_0 id and the second acquires a 0_1 id.
dir?
string
Sets the direction of the Menu.
itemRender?
any
A Vue functional or class component which is used for rendering the innermost part of the Menu item (see example). By default, the innermost item part includes only the text for the item.
Sets the Menu items.
linkRender?
any
A Vue functional or class component which is used for rendering the link of the item (see example). The item link is a part of the visual representation of the item which, by default, includes an arrow, icon, and text.
offset?
Offset
Sets the absolute position of the ContextMenu popup.
onClose?
() => void
Fires when the ContextMenu should close.
onSelect?
(event: MenuSelectEvent) => void
Fires when a Menu item is selected.
show?
boolean
Controls the visibility of the ContextMenu.
Configures the size of the Menu. Applies to the root items and to the popup items.
The available options are:
- small
- medium
- large
vertical?
boolean
Specifies whether the Menu will be vertical (see example).