feat(Datepicker): Datepicker yearsPerPage value #22253
Labels
feature
This issue represents a new feature or feature request rather than a bug or bug fix
needs triage
This issue needs to be triaged by the team
Feature Description
Angular Material Datepicker
Multi year view
has 24 years in the table.export const yearsPerPage = 24;
Use Case
We can set date range dynamically using
MAT_DATE_RANGE_SELECTION_STRATEGY
/** Injection token used to customize the date range selection behavior. */
export const MAT_DATE_RANGE_SELECTION_STRATEGY =
new InjectionToken<MatDateRangeSelectionStrategy>('MAT_DATE_RANGE_SELECTION_STRATEGY');
Hopefully want to set the yearsPerPage dynamically as well.
<mat-datepicker #picker [yearsPerPage]="N">
The text was updated successfully, but these errors were encountered: