The filter & calendarHeaderComponent should work as mentioned in the document
The filter & calendarHeaderComponent is not working.
StackBlitz starter: https://stackblitz.com/edit/angular-date-filter-moment?file=app%2Fdatepicker-overview-example.ts
7.3.1
I want to disable some of the dates based on our data & want to make the header so the user can not change its view to month or year.
I have the same issue. Did you find any workaround ?
Same issue this functionality would be Awesome!
This is already supported but instead of calendarHeaderComponent you should use headerComponent.
e.g.
<mat-calendar [headerComponent]="customCalendarHeader"></mat-calendar>
Similarly, instead of matDatepickerFilter you should use dateFilter.
e.g.
<mat-calendar [dateFilter]="customDateFilter"></mat-calendar>
Anything I specify as customHeader makes the calendar to not be rendered at all
Most helpful comment
This is already supported but instead of calendarHeaderComponent you should use headerComponent.
e.g.
<mat-calendar [headerComponent]="customCalendarHeader"></mat-calendar>Similarly, instead of matDatepickerFilter you should use dateFilter.
e.g.
<mat-calendar [dateFilter]="customDateFilter"></mat-calendar>