<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>
data() {
return {
isMenuOpen: false
}
}
Prop | Type | Default | Description |
---|---|---|---|
quickOpen | Boolean | false | deactivates menu animation |
open | Boolean | false | open the menu (could be v-modeled) |
Event | Payload | Description |
---|---|---|
select | { index: Number, item: HTMLElement } | emitted when menu item is selected |
cancel | - | emitted when menu interaction is cancelled |
Slot | Description |
---|---|
default | menu content (list) |
Slot | Description |
---|---|
default | should be the menu |