|
1 | | -<div style="display: flex; justify-content: space-around;"> |
2 | | - <mat-slide-toggle [(ngModel)]="placeholder"> |
3 | | - Days placeholder |
4 | | - </mat-slide-toggle> |
5 | | -</div> |
| 1 | +<mat-tab-group> |
| 2 | + <mat-tab label="Overview"> |
6 | 3 |
|
7 | | -<div class="selection"> |
8 | | - <mat-form-field> |
9 | | - <mat-label>Months before</mat-label> |
10 | | - <mat-select [(ngModel)]="monthsBefore"> |
11 | | - <mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{num}}</mat-option> |
12 | | - </mat-select> |
13 | | - </mat-form-field> |
14 | | - <mat-form-field> |
15 | | - <mat-label>Months after</mat-label> |
16 | | - <mat-select [(ngModel)]="monthsAfter"> |
17 | | - <mat-option *ngFor="let num of monthsAfterBefore" [value]="num">{{num}}</mat-option> |
18 | | - </mat-select> |
19 | | - </mat-form-field> |
20 | | - <div> |
21 | | - <p>Selected range: {{range | json}}</p> |
22 | | - </div> |
23 | | -</div> |
| 4 | + </mat-tab> |
| 5 | + <mat-tab label="API"> |
| 6 | + <div style="margin-top: 16px;" markdown [src]="docsApi"></div> |
| 7 | + </mat-tab> |
| 8 | + <mat-tab label="Examples"> |
| 9 | + <div style="display: flex; justify-content: space-around;"> |
| 10 | + <mat-slide-toggle [(ngModel)]="placeholder"> |
| 11 | + Days placeholder |
| 12 | + </mat-slide-toggle> |
| 13 | + </div> |
24 | 14 |
|
25 | | -<div style="height: 80%;"> |
26 | | - <fs-calendar [placeholderDay]="placeholder" [dataSource]="dataSource" [year]="2022" [month]="3" |
27 | | - [monthsBefore]="monthsBefore" [monthsAfter]="monthsAfter" [config]="calendarConfig" |
28 | | - (selectedDate)="testMethod($event)"> |
29 | | - </fs-calendar> |
30 | | -</div> |
| 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 | + <p>Selected range: {{range | json}}</p> |
| 30 | + </div> |
| 31 | + </div> |
| 32 | + |
| 33 | + <div style="height: 80%;"> |
| 34 | + <fs-calendar [placeholderDay]="placeholder" [dataSource]="dataSource" [year]="2022" [month]="3" |
| 35 | + [monthsBefore]="monthsBefore" [monthsAfter]="monthsAfter" [config]="calendarConfig" |
| 36 | + (selectedDate)="testMethod($event)"> |
| 37 | + </fs-calendar> |
| 38 | + </div> |
| 39 | + |
| 40 | + </mat-tab> |
| 41 | +</mat-tab-group> |
0 commit comments