Skip to main content

Toggle Menu

info

For more details about Vuetify’s usage of ToggleMenu component, click ToggleMenu page.
For more prop explanations, click Vuetify ToggleMenu API page.

Props

AttributeDescriptionTypeDefault
attackThe designated model value for the component.anyfalse
valueSpecifies the vmodel value of the menu. whether the menu is open or closed.booleanfalse
classprop that determines the class to add to the menu.stringundefined
darkApplies dark theme.booleanfalse
closeOnContentClickDesignates if menu should close when its content is clicked.booleanfalse
eagerWill force the components content to render on mounted. This is useful if you have content that will not be rendered in the DOM that you want crawled for SEO.booleantrue
minWidthSets the minimum width for the content.number | stringundefined
nudgeLeftNudge the content to the bottom.number | string0
nudgeRightNudge the content to the right.number | string0
nudgeTopNudge the content to the top.number | string0
nudgebottomNudge the content to the bottom.number | string0
offsetXOffset the menu on the x-axis. Works in conjunction with direction left/right.booleanfalse
offsetYOffset the menu on the y-axis. Works in conjunction with direction top/bottom.booleanfalse
openOnClickDesignates whether menu should open on activator click.booleantrue
openOnHoverDesignates whether menu should open on activator hover.booleantrue
openOnFocusbooleanfalse
returnValueThe value that is updated when the menu is closed - must be primitive. Dot notation is supported.anyundefined
tabindexIt determines the order of switching from one component to another with the tab key.stringundefined
transitionSets the component transition. Can be one of the built in transitions or one your own.boolean | stringmenu-transition
visibleVisibility of ToggleMenu component.booleantrue

Slots

AttributeDescription
activatorWhen used, will activate the component when clicked (or hover for specific components). This manually stops the event propagation. Without this slot, if you open the component through its model, you will need to manually stop the event propagation { attrs: { role: string, aria-haspopup: boolean, aria-expanded: string }, on: { [eventName]: eventHandler }, value: boolean }
defaultThe default component slot

Events

AttributeDescription
inputThe updated bound model

Samples Component

ToggleMenu-1

ToggleMenu-2

Samples Qjson

Menu
Menu_PopoverInTable
Menu_sample