[Paginator] Ability to manually update hasNextPage() return value
- 主要语言
- TypeScript
- 星标
- 25k
- 派生
- 6.8k
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 91
描述
#### 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.
贡献指南
调研方向
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.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- angular, typescript
- 领域
- frontend
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100