You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 30, 2020. It is now read-only.
<m-menu><m-list><li><m-menu-selection-group><m-list-item><m-iconslot="graphic" icon="refresh"></m-icon><templateslot="text">Refresh</template></m-list-item><m-list-item><m-iconslot="graphic" icon="favorite"></m-icon><templateslot="text">Favorite</template></m-list-item></m-menu-selection-group></li><m-list-divider></m-list-divider><m-list-item><!-- some other list items --></m-list-item></m-list></m-menu>
Disabled Menu Items
Disabled menu items will be excluded from keyboard navigation.
Sets the corner that the menu surface will be anchored to. Can be one of the following: TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, TOP_START, TOP_END, BOTTOM_START, BOTTOM_END
absolutePositionX
Number
null
Sets the absolute x position of the menu. Should only be used when the menu is hoisted or using fixed positioning.
absolutePositionY
Number
null
Sets the absolute y position of the menu. Should only be used when the menu is hoisted or using fixed positioning.
hoistToBody
Boolean
false
Removes the menu-surface element from the DOM and appends it to the body element. Should be used to overcome overflow: hidden issues.
fixed
Boolean
false
Sets whether the menu surface is using fixed positioning.
wrapFocus
Boolean
true
Sets the list to allow the up arrow on the first element to focus the last element of the list and vice versa.
defaultFocusState
[Number, String]
LIST_ROOT
Sets default focus state where the menu should focus every time when menu is opened. Focuses the list root (LIST_ROOT) element by default. Can be one of the following: NONE, LIST_ROOT, FIRST_ITEM, LAST_ITEM
selectedIndex
Number
-1
Sets the list item to the selected state at the specified index. Do nothing when value is lower than 0.
isHoisted
Boolean
false
Sets whether the menu surface has been hoisted to the body so that the offsets are calculated relative to the page and not the anchor.
<m-menu-anchor><buttonid="menu-surface-button" @click="open=true">Open Menu Surface</button><m-menu-surfacev-model="open">
...
</m-menu-surface></m-menu-anchor>
data(){return{open: false}}
Fixed Position
<m-menu-surfacefixed></m-menu-surface>
Props
Prop
Type
Default
Description
quickOpen
Boolean
false
Sets whether the menu surface should open and close without animation.
open
Boolean
false
Opens the menu surface (could be v-modeled).
anchorCorner
[Number, String]
TOP_LEFT
Sets the corner that the menu surface will be anchored to. Can be one of the following: TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT, TOP_START, TOP_END, BOTTOM_START, BOTTOM_END
absolutePositionX
Number
null
Sets the absolute x position of the menu surface. Should only be used when the menu is hoisted or using fixed positioning.
absolutePositionY
Number
null
Sets the absolute y position of the menu surface. Should only be used when the menu is hoisted or using fixed positioning.
hoistToBody
Boolean
false
Removes the menu-surface element from the DOM and appends it to the body element. Should be used to overcome overflow: hidden issues.
fixed
Boolean
false
Sets whether the menu surface is using fixed positioning.
isHoisted
Boolean
false
Sets whether the menu surface has been hoisted to the body so that the offsets are calculated relative to the page and not the anchor.
Slots
Slot
Description
default
content in the menu surface
Menu Selection Group
Used to wrap a group of <m-list-item> that will represent a selection group.