Expose information about the current range to the datepicker actions
- Lenguaje dominante
- TypeScript
- Estrellas
- 25k
- Forks
- 6.8k
- Merge medio
- 1 d 8 h
- PR fusionados (30 d)
- 91
Descripción
#### 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
Guía de contribución
Línea de trabajo
Comienza con la reproducción vinculada de StackBlitz y sigue cómo mat-date-range-picker-actions recibe el estado y cómo se expone la selección de días. Se considera terminado cuando las actions puedan determinar si ambas fechas del rango actual están seleccionadas, lo que permite que el botón Apply permanezca deshabilitado hasta que el rango esté completo.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- angular, typescript
- Área
- frontend
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100