ContextMenu
Represents the Kendo UI for Vue ContextMenu component. Accepts properties of type ContextMenuProps.
Definition
Package:@progress/kendo-vue-layout
Properties Interface:ContextMenuProps
Syntax:
<ContextMenu
:show="show"
:offset="{ left: 120, top: 80 }"
:items="[{ text: 'Edit order' }, { text: 'Duplicate order' }, { text: 'Cancel order' }]"
:size="'medium'"
@select="onSelect"
@close="show = false"
/>
Properties
Sets a component, render function, or slot name that renders trailing actions on each Menu item.
The template receives { item, itemId }. The actionsRender setting of an item overrides this setting.
className?
string
Adds a custom CSS class to the top element of the Menu.
customCloseItemIds?
string[]
Sets the ids of the Menu items that stay open when the mouse leaves them.
The ids are hierarchical and zero-based. The first root item has the 0 id.
If the first root item has children, the first child has the 0_0 id and the second child has the 0_1 id.
dir?
string
Sets the direction of the Menu. Set it to rtl to show the Menu from right to left.
itemRender?
any
Sets a Vue component, render function, or slot name that renders the innermost part of each Menu item (see example).
By default, the innermost part shows only the item text.
Sets the items of the Menu.
linkRender?
any
Sets a Vue component, render function, or slot name that renders the link of each item (see example).
The item link is the visible part of the item. By default, it shows an arrow, an icon, and the text.
offset?
Offset
Sets the absolute position of the ContextMenu popup.
{ left: 0, top: 0 }
onClose?
() => void
Fires when the ContextMenu needs to close, for example, when the user clicks outside of it.
onSelect?
(event: MenuSelectEvent) => void
Fires when the user selects a Menu item.
show?
boolean
Sets if the ContextMenu is visible.
false
Sets the size of the Menu. The size applies to the root items and to the popup items.
The available options are:
- small
- medium
- large
vertical?
boolean
Sets if the Menu renders its items vertically (see example).
The Menu sets the aria-orientation attribute to vertical when you enable this property.
false