angular / angular/components

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

Đang mở
#17,449 4 bình luận 3 reaction 0 người được giao Xem trên GitHub
area: material/paginator feature P3
Ngôn ngữ chính
TypeScript
Star
25k
Fork
6.8k
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
91

Mô tả

#### 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 (...) "<" ">"

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, typescript
Lĩnh vực
frontend
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.