"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/menu/menu.md" between
material2-7.3.6.tar.gz and material2-7.3.7.tar.gz

About: material2 offers Material Design components for Angular.

menu.md  (material2-7.3.6):menu.md  (material2-7.3.7)
skipping to change at line 71 skipping to change at line 71
<mat-menu #appMenu="matMenu" yPosition="above"> <mat-menu #appMenu="matMenu" yPosition="above">
<button mat-menu-item>Settings</button> <button mat-menu-item>Settings</button>
<button mat-menu-item>Help</button> <button mat-menu-item>Help</button>
</mat-menu> </mat-menu>
<button mat-icon-button [matMenuTriggerFor]="appMenu"> <button mat-icon-button [matMenuTriggerFor]="appMenu">
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>
</button> </button>
``` ```
<!-- example(menu-position) -->
### Nested menu ### Nested menu
Material supports the ability for an `mat-menu-item` to open a sub-menu. To do s o, you have to define Material supports the ability for an `mat-menu-item` to open a sub-menu. To do s o, you have to define
your root menu and sub-menus, in addition to setting the `[matMenuTriggerFor]` o n the `mat-menu-item` your root menu and sub-menus, in addition to setting the `[matMenuTriggerFor]` o n the `mat-menu-item`
that should trigger the sub-menu: that should trigger the sub-menu:
```html ```html
<mat-menu #rootMenu="matMenu"> <mat-menu #rootMenu="matMenu">
<button mat-menu-item [matMenuTriggerFor]="subMenu">Power</button> <button mat-menu-item [matMenuTriggerFor]="subMenu">Power</button>
<button mat-menu-item>System settings</button> <button mat-menu-item>System settings</button>
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)