File tree Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Expand file tree Collapse file tree 3 files changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
- < div >
2
- < button (click) ="previousClicked('year') "> <<</ button >
3
- < button (click) ="previousClicked('month') "> <</ button >
4
- {{periodLabel}}
5
- < button (click) ="nextClicked('month') "> ></ button >
6
- < button (click) ="nextClicked('year') "> >></ button >
1
+ < div class =" custom-header " >
2
+ < button mat-icon-button (click) ="previousClicked('year') "> <<</ button >
3
+ < button mat-icon-button (click) ="previousClicked('month') "> <</ button >
4
+ < span class =" custom-header-label " > {{periodLabel}}</ span >
5
+ < button mat-icon-button (click) ="nextClicked('month') "> ></ button >
6
+ < button mat-icon-button (click) ="nextClicked('year') "> >></ button >
7
7
</ div >
Original file line number Diff line number Diff line change
1
+ .custom-header {
2
+ padding : 1.5em ;
3
+ display : flex ;
4
+ }
5
+
6
+ .custom-header-label {
7
+ flex : 1 ;
8
+ text-align : center ;
9
+ }
10
+
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export class DatepickerDemo {
51
51
moduleId : module . id ,
52
52
selector : 'custom-header' ,
53
53
templateUrl : 'custom-header.html' ,
54
- styleUrls : [ ] ,
54
+ styleUrls : [ 'custom-header.css' ] ,
55
55
changeDetection : ChangeDetectionStrategy . OnPush ,
56
56
} )
57
57
export class CustomHeader < D > {
You can’t perform that action at this time.
0 commit comments