New to Kendo UI for Vue? Start a free 30-day trial

MenuProps

Interface

Represents the props of the Kendo UI for Vue Menu component.

Definition

Package:@progress/kendo-vue-layout

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.

Example:
vue
<Menu :items="items" :actions-render="'actions'">
    <template #actions="{ props }"><kbd>{{ props.item.data?.shortcut }}</kbd></template>
</Menu>

Adds a custom CSS class to the top element of the Menu.

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.

Sets the delay in milliseconds before the Menu closes an item when the mouse leaves it (see example). Use it to prevent the item from closing by accident.

Default:

100

Sets the delay in milliseconds before the Menu opens an item when the user hovers over it (see example). When openOnClick is true, the default value is 0.

Default:

100

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.

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.

onSelect?

(event: MenuSelectEvent) => void

Fires when the user selects a Menu item.

Parameters:eventMenuSelectEvent

When you set openOnClick to true, the Menu opens items on hover only after the user clicks an item first.

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
Example:
vue
<Menu :items="items" :size="'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.

Default:

false