-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/paginatorfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix
Description
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
- You wouldn't know the actual max length.
- 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 (...) "<" ">"
<mat-paginator [maskTotal]="true" [maskTotalLabel]="'More'"
dhirenpratap, awan1 and pschoen-itsc
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/paginatorfeatureThis issue represents a new feature or feature request rather than a bug or bug fixThis issue represents a new feature or feature request rather than a bug or bug fix