Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Menu

Markup

<m-menu-anchor>
  <m-button raised @click="isMenuOpen=true">open</m-button>
  <m-menu v-model="isMenuOpen">
    <m-list>
      <m-list-item>Entry 1</m-list-item>
      <m-list-divider/>
      <m-list-item>Entry 2</m-list-item>
    </m-list>
  </m-menu>
</m-menu-anchor>

Script

data() {
    return {
        isMenuOpen: false
    }
}

Props

Prop Type Default Description
quickOpen Boolean false deactivates menu animation
open Boolean false open the menu (could be v-modeled)

Events

Event Payload Description
select { index: Number, item: HTMLElement } emitted when menu item is selected
cancel - emitted when menu interaction is cancelled

Slots

Slot Description
default menu content (list)

MenuAnchor

Slots

Slot Description
default should be the menu

Reference