[Paginator] Ability to manually update hasNextPage() return value
- 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ả
#### Bug, feature request, or proposal:
Feature request
#### What is the expected behavior?
Return value of hasNextPage() (or hasPreviousPage()) method can be updated manually by a property outside of pageSize and pageIndex.
#### What is the current behavior?
Calculates return value based on pageSize and pageIndex
#### What is the use-case or motivation for changing an existing behavior?
In the event when the pageSize/length passed is not an accurate representation of the true length but an estimated length (when data is sent via the server). In this case, useful to be able to determine hasNextPage() method based on whether or not the server determines a next page exists. Otherwise, paginator will either allow nextPage events to fire when an empty query is returned or disallow pagination when more data can be queried.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the paginator's hasNextPage() and hasPreviousPage() entry points and trace how pageSize and pageIndex determine their results. Review the issue's server-side estimated-length use case and the existing comment discussion; done means the API and behavior clearly support server-provided page-boundary information without breaking current pagination behavior.
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