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

MenuItemModel

Interface

Represents an item that you pass to the items property of the Menu.

Definition

Package:@progress/kendo-vue-layout

Properties

Sets a component, render function, or slot name that renders trailing actions for this item before the expand arrow. The template receives { item, itemId }. This setting overrides the actionsRender setting of the Menu.

Example:
vue
<Menu :items="[{ text: 'Copy', actionsRender: 'copyActions' }]">
    <template #copyActions><kbd>Ctrl+C</kbd></template>
</Menu>

Sets a Vue component, render function, or slot name that renders content instead of the item children (see example).

cssClass?

string

Adds custom CSS classes to the item (see example).

Sets the CSS styles of the item (see example).

Stores any custom data that you want to keep with the Menu item.

Sets secondary text below the item text. The text wraps and is never cut off. It does not depend on actionsRender. Group headers and separators ignore it.

Example:
vue
<Menu :items="[{ text: 'Copy', description: 'Copy the selection' }]" />

disabled?

boolean

Sets if the item is disabled (see example). A disabled item gets the aria-disabled attribute.

Sets if the item is a group header for the items that follow it. The user cannot interact with a group header.

Example:
vue
<Menu :items="[{ text: 'File', items: [{ text: 'Recent', groupHeader: true }, { text: 'Doc 1' }] }]" />

Sets a component, render function, or slot name that renders custom group header content. The template receives the original item and its itemId.

icon?

string

Sets the name of the FontIcon that the item shows.

Sets the child items of the item.

Sets a Vue component, render function, or slot name that renders the link of the item (see example). The item link is the visible part of the item. By default, it shows an arrow, an icon, and the text.

Adds custom CSS classes to the popup of the item.

Sets a Vue component, render function, or slot name that renders the innermost part of the item (see example). By default, the innermost part shows only the item text.

separator?

boolean

Sets if the item is a separator. When you set it to true, set only the cssClass and cssStyle properties as well.

svgIcon?

SVGIcon

Sets the SVGIcon that the item shows.

text?

string

Sets the text of the item (see example).

url?

string

Sets a URL that the Menu renders as the href attribute of the item link (see example).