Menus Item
Sub menu item.
Usage
Use <VMenusItem />
component to add sub menu.
View Code
<template>
<VMenus title="Settings">
<VMenusItem>Account</VMenusItem>
<VMenusItem shortcut="cmd+e">Settings</VMenusItem>
<VMenusItem divider />
<VMenusItem shortcut="cmd+alt+q">Logout</VMenusItem>
</VMenus>
</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
}