[terra-paginator] Progressive-Paginator add support for unknown total pages
See original GitHub issueDescription
The standard Terra-Paginator currently has support for both when the total number of pages is known and when the total number of pages is not known.
The request is to similarly add support for when the total number of pages is not known to the Progressive-Paginator layout. Currently the progressive-paginator shows Page 1 of {total}
and First <Previous Next> Last
. When a total count is not known, the updates will remove the “of {total}” text and the “First” and “Last” buttons.
Example Screenshots
Above tiny breakpoint: Page 1 (Previous is dithered, Next is active)
Above tiny breakpoint: Page 2+ (Previous and Next are both active)
Tiny breakpoint: Page 1 (Previous is dithered, Next is active)
Tiny breakpoint: Page 2+ (Previous and Next are both active)
Related
- UX Audit: Terra-Paginator - https://github.com/cerner/terra-core/issues/3097
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
@supreethmr, I know for some of our services we don’t know how many total items there are when we start loading items, but we do know when we reach the last page. We were hoping the component design could support having a disabled “Next” button once we know we have reached the last page. From what I can tell this isn’t possible with the current design proposal, but I could definitely be missing it.
A Tech Design needs to be completed first in order to determine the best approach. The current Progressive-Paginator has four props (
onPageChange
,selectedPage
,totalCount
, anditemCountPerPage
) which are all are required. In order to create a version where totalCount is not known, a new subcomponent might need to be made, otherwise will need to determine if will be a Major Version Bump or not if existing subcomponent can be modified to handle the API for both.