angular / angular/components

Inline Datepicker with MatCalendar

Abierto
#8,812 8 comentarios 64 reacciones 0 asignados Ver en GitHub
area: material/datepicker feature P3
Lenguaje dominante
TypeScript
Estrellas
25k
Forks
6.8k
Merge medio
1 d 8 h
PR fusionados (30 d)
91

Descripción

For some case is it helpfully to have the datepicker as inline calendar.
But currently the datepicker is only available with on body tag, with a full page background layer for handle the close interaction.

Is it possible to inject the datepicker inline, or can this be a ne feature for the future?
One solution is to use the "mat-calendar" component, but its might be not official and a little bit hacky.

Like:
`
`
But its need to add more code in the *.ts file to update the view correctly.
Like the changed value:

`
getChangedValue(newDate) {
this.selDate = newDate
this.calendar['_activeDate'] = newDate;
this.calendar['monthView'] = false; // this line updates the calendar view
`

Any solution to use the code easier or to implement at the current state an inline datepicker?

Best regards,
Stephan

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza leyendo el ejemplo inline con del issue y las APIs existentes de datepicker y MatCalendar. Determina si está definido un comportamiento de datepicker inline con soporte oficial; para darlo por terminado sería necesario haber decidido el alcance y contar con soporte documentado o probado, en lugar de depender de propiedades privadas como _activeDate o monthView.

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
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.