|
1 | | -<div class="mat-app-background"> |
2 | | - |
3 | | - <mat-toolbar color="primary"> |
4 | | - Material Calendar |
5 | | - <div style="display: flex; justify-content: space-around;"> |
6 | | - <mat-slide-toggle [formControl]="toggleControl"> |
7 | | - Toggle Themes |
8 | | - </mat-slide-toggle> |
9 | | - <mat-slide-toggle [(ngModel)]="placeholder"> |
10 | | - Days placeholder |
11 | | - </mat-slide-toggle> |
12 | | - </div> |
13 | | - </mat-toolbar> |
14 | | - |
15 | | - <div class="selection"> |
16 | | - <mat-form-field> |
17 | | - <mat-label>Months before</mat-label> |
18 | | - <mat-select [(ngModel)]="monthsBefore"> |
19 | | - <mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{num}}</mat-option> |
20 | | - </mat-select> |
21 | | - </mat-form-field> |
22 | | - <mat-form-field> |
23 | | - <mat-label>Months after</mat-label> |
24 | | - <mat-select [(ngModel)]="monthsAfter"> |
25 | | - <mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{num}}</mat-option> |
26 | | - </mat-select> |
27 | | - </mat-form-field> |
28 | | - <div> |
29 | | - Events: {{ latestEvent | json }} |
30 | | - </div> |
| 1 | +<mat-toolbar color="primary"> |
| 2 | + Material Calendar |
| 3 | + <div style="display: flex; justify-content: space-around;"> |
| 4 | + <mat-slide-toggle [formControl]="toggleControl"> |
| 5 | + Toggle Themes |
| 6 | + </mat-slide-toggle> |
| 7 | + <mat-slide-toggle [(ngModel)]="placeholder"> |
| 8 | + Days placeholder |
| 9 | + </mat-slide-toggle> |
31 | 10 | </div> |
| 11 | +</mat-toolbar> |
32 | 12 |
|
| 13 | +<div class="selection mat-app-background"> |
| 14 | + <mat-form-field> |
| 15 | + <mat-label>Months before</mat-label> |
| 16 | + <mat-select [(ngModel)]="monthsBefore"> |
| 17 | + <mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{num}}</mat-option> |
| 18 | + </mat-select> |
| 19 | + </mat-form-field> |
| 20 | + <mat-form-field> |
| 21 | + <mat-label>Months after</mat-label> |
| 22 | + <mat-select [(ngModel)]="monthsAfter"> |
| 23 | + <mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{num}}</mat-option> |
| 24 | + </mat-select> |
| 25 | + </mat-form-field> |
33 | 26 | <div> |
34 | | - <calendar-panel [placeholderDay]="placeholder" [dataSource]="dataSource" year="2021" month="5" |
35 | | - [monthsBefore]="monthsBefore" [monthsAfter]="monthsAfter" [config]="calendarConfig" |
36 | | - (clickDate)="testMethod($event)"> |
37 | | - </calendar-panel> |
| 27 | + Events: {{ latestEvent | json }} |
38 | 28 | </div> |
39 | 29 | </div> |
| 30 | + |
| 31 | +<div class="mat-app-background" style="height: 80%;"> |
| 32 | + <calendar-panel [placeholderDay]="placeholder" [dataSource]="dataSource" [year]="2021" [month]="5" |
| 33 | + [monthsBefore]="monthsBefore" [monthsAfter]="monthsAfter" [config]="calendarConfig" |
| 34 | + (clickDate)="testMethod($event)"> |
| 35 | + </calendar-panel> |
| 36 | +</div> |
0 commit comments