Expose information about the current range to the datepicker actions
- Langage dominant
- TypeScript
- Étoiles
- 25k
- Forks
- 6.8k
- Merge moyen
- 1 j 8 h
- PR mergées (30 j)
- 91
Description
#### What are you trying to do?
I am trying to disable the apply button inside mat-date-range-picker-actions until a range is selected
#### What troubleshooting steps have you tried?
tried to see if any events fire on day selection so I can determine if the range is correct
#### Reproduction
https://stackblitz.com/edit/angular-date-range-picker-actions?file=src/app/date-range-picker-forms-example.html
Well, here is a start point. I could not find a way to disable the Apply button until both dates are selected.
Reson is the form data is not updated until Apply is clicked and I could not find any events that trigger on day selection. There are some for year and month but not day.
#### Environment
- Angular: 12
- CDK/Material: latest
- Browser(s): N/A
- Operating System (e.g. Windows, macOS, Ubuntu): N/A
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la reproduction StackBlitz liée et suivez la manière dont mat-date-range-picker-actions reçoit l’état et dont la sélection des jours est exposée. Le travail est terminé lorsque les actions peuvent déterminer si les deux dates de la plage actuelle sont sélectionnées, ce qui permet au bouton Apply de rester désactivé jusqu’à ce que la plage soit complète.
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é
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 30/100