angular / angular/components

Enhance the mat-paginator so the total length can be masked.

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

Descripción

#### Feature Description

Provide the way to mask the 'total length'.

#### Use Case

With large data set, getting the count from the backend database is slow. We'd like to mask the "total length", so the users can paginate without having to know the max length. The end user would be able to continue to paginate until there is no results from the backend.

Two issues

1. You wouldn't know the actual max length.
2. If the last page set returns the same as the page size, then it would still allow to paginate to next page. However, there would be no results.

The end user who can live with these two issues can simply mask the total length by specifying the display label such as "More" or "..."

Example.

200-300 (More) "<" ">"
Or
200-300 (...) "<" ">"

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Start with the mat-paginator entry point and inspect its current total-length, range-label, and next-page behavior. Define how maskTotal and maskTotalLabel should affect the displayed range and pagination, including the two stated last-page cases. Done means the behavior is specified and covered for masked totals and empty-result navigation.

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
35/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.