File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed
src/components-examples/material/toolbar Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ ng_module(
11
11
]),
12
12
module_name = "@angular/components-examples/material/toolbar" ,
13
13
deps = [
14
+ "//src/material/button" ,
14
15
"//src/material/icon" ,
15
16
"//src/material/toolbar" ,
16
17
],
Original file line number Diff line number Diff line change 1
1
import { NgModule } from '@angular/core' ;
2
+ import { MatButtonModule } from '@angular/material/button' ;
2
3
import { MatIconModule } from '@angular/material/icon' ;
3
4
import { MatToolbarModule } from '@angular/material/toolbar' ;
4
5
import { ToolbarMultirowExample } from './toolbar-multirow/toolbar-multirow-example' ;
@@ -16,6 +17,7 @@ const EXAMPLES = [
16
17
17
18
@NgModule ( {
18
19
imports : [
20
+ MatButtonModule ,
19
21
MatIconModule ,
20
22
MatToolbarModule ,
21
23
] ,
Original file line number Diff line number Diff line change 1
- /** No CSS for this example */
1
+ .example-spacer {
2
+ flex : 1 1 auto;
3
+ }
Original file line number Diff line number Diff line change 1
- < mat-toolbar > My App</ mat-toolbar >
1
+ < mat-toolbar >
2
+ < button mat-icon-button class ="example-icon " aria-label ="Example icon-button with menu icon ">
3
+ < mat-icon > menu</ mat-icon >
4
+ </ button >
5
+ < span > My App</ span >
6
+ < span class ="example-spacer "> </ span >
7
+ < button mat-icon-button class ="example-icon favorite-icon " aria-label ="Example icon-button with heart icon ">
8
+ < mat-icon > favorite</ mat-icon >
9
+ </ button >
10
+ < button mat-icon-button class ="example-icon " aria-label ="Example icon-button with share icon ">
11
+ < mat-icon > share</ mat-icon >
12
+ </ button >
13
+ </ mat-toolbar >
You can’t perform that action at this time.
0 commit comments