@ivanvanderbyl/ember-material-components-menu
ember-cli addon for @material/menu
.
Installation
ember install @ivanvanderbyl/ember-material-components-menu
Components and Mixins
Components
{{mdc-menu}}
Description
Add a menu component to the page.
Usage
Attributes
-
open
- Trigger the surface to open; sets tofalse
when closed. -
anchor
- Optional anchor point for the menu surface. Default is"parent"
, but can also be"body"
. -
quickOpen
- Enable quick open. -
position
- Optional position of the menu surface. -
positionLeft
- Left position of the menu (works only in absolute mode). -
positionTop
- Top position of the menu (works only in absolute mode).
Menu Items
Use the {{mdc-menu-list}}
to add items to the menu.
Dividers
The {{mdc-list-divider}}
component is used to a divider between menu items.
Group Selections
The {{mdc-menu-selection-group}}
block component is used to select between
a group of menu items.