angular / angular/components

Change the year range in a multi-year view in mat-datepicker

Ouverte
#18,227 6 commentaires 13 réactions 0 personnes assignées Voir sur GitHub
area: material/datepicker feature P3
Langage dominant
TypeScript
Étoiles
25k
Forks
6.8k
Merge moyen
1 j 8 h
PR mergées (30 j)
91

Description

**Feature Description**

The possibility to control the year range in a multi-year view in the mat-datepicker in Angular Material 7.

**What is the current behavior?**

Currently the default range of 24 years starts from 2016-2039, and each page backwards offers another 24-year range.

**Use Case**

I need to show a different year range in the multi-year view in the mat-datepicker. I need the possibility to manipulate the year range to be different than the default (which is 2016-2039 in the starting view), e.g. 2010-2033.
This will improve the UX of an application where customers mostly select years beginning from 2010 (customers now need to go to the previous page with a year range from 1992-2015.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par lire l’implémentation de mat-datepicker et sa couverture de tests existante afin de déterminer comment la vue multi-années sélectionne sa plage initiale de 24 ans. La tâche est terminée lorsque les appelants peuvent configurer une plage différente et que la vue multi-années initiale reflète cette plage, y compris l’exemple 2010–2033.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
angular, typescript
Domaine
frontend
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
48/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.