MenusItem
Sub menu item.
Usage
Use <MenusItem />
component to add sub menu.
View Code
<template> <Menus title="Settings"> <MenusItem>Account</MenusItem> <MenusItem shortcut="cmd+e">Settings</MenusItem> <MenusItem divider /> <MenusItem shortcut="cmd+alt+q">Logout</MenusItem> </Menus></template>
Props
Prop | Type | Default Value |
---|---|---|
title | string | '' |
to | string | RouteLocation | '' |
icon | string | `` |
shortcut | string | `` |
header | string | `` |
divider | string | `` |
children | Props[] | `` |
placement | MenuPlacement | `` |
onClick | Function | (close: () => void) => void |
Event
None.
Types
interface Props { to?: string | RouteLocation title: string icon?: string shortcut?: string header?: string divider?: boolean children?: Props[] placement?: MenuPlacement onClick?: (close: () => void) => void}