Skip to content

Commit 014777a

Browse files
author
Tobias Schweizer
committed
refactor (calendarHeaderComponent) rename input of MatDatepicker
1 parent 3467c0a commit 014777a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/demo-app/datepicker/datepicker-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h2>Options</h2>
1111
<input matInput [matDatepicker]="minDatePicker" [(ngModel)]="minDate" placeholder="Min date"
1212
[disabled]="inputDisabled">
1313
<mat-datepicker-toggle matSuffix [for]="minDatePicker"></mat-datepicker-toggle>
14-
<mat-datepicker #minDatePicker [touchUi]="touch" [disabled]="datepickerDisabled" [customCalendarHeaderComponent]="customHeader"></mat-datepicker>
14+
<mat-datepicker #minDatePicker [touchUi]="touch" [disabled]="datepickerDisabled" [calendarHeaderComponent]="customHeader"></mat-datepicker>
1515
</mat-form-field>
1616
<mat-form-field>
1717
<input matInput [matDatepicker]="maxDatePicker" [(ngModel)]="maxDate" placeholder="Max date"

src/lib/datepicker/datepicker-content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
[selected]="datepicker._selected"
1010
(selectedChange)="datepicker._select($event)"
1111
(_userSelection)="datepicker.close()"
12-
[headerComponent]="datepicker.customCalendarHeaderComponent">
12+
[headerComponent]="datepicker.calendarHeaderComponent">
1313
</mat-calendar>

src/lib/datepicker/datepicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class MatDatepickerContent<D> implements AfterContentInit {
117117
export class MatDatepicker<D> implements OnDestroy {
118118

119119
/** An input indicating the type of the custom header component for the calendar, if set. */
120-
@Input() customCalendarHeaderComponent: ComponentType<any>;
120+
@Input() calendarHeaderComponent: ComponentType<any>;
121121

122122
/** The date to open the calendar to initially. */
123123
@Input()

0 commit comments

Comments
 (0)