-
Notifications
You must be signed in to change notification settings - Fork 166
[terra-paginator] Progressive-Paginator add support for unknown total pages #3157
Comments
A Tech Design needs to be completed first in order to determine the best approach. The current Progressive-Paginator has four props ( |
Need some inputs on choosing better approach to make Progressive-Paginator to support unknown page counts. As @neilpfeiffer mentioned we can create new subcomponent OR we can edit existing component by updating
Tech Design :Props for InfiniteProgressivePaginator:
Props for ControlledInfiniteProgressivePaginator:
Design Changes
Pros :
Cons :
Link to sub-component implementation
Props for ProgressivePaginator:
Props for ControlledProgressivePaginator:
Design Changes
Pros :
Cons :
link to code changes in existing component |
@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. |
@dkschoonover Is there an indicator for page to identify as last page...?? OR will there be any unique pointers in page that makes it to identify as last page...?? |
@supreethmr, yeah, usually our services have a last page indicator so we know to stop loading in new pages. |
Oh okay, Well then I think once the last page is identified we can calculate and update the Since paginator has no interaction with the data that is being paginated. I don't see much options to support the disabling of next button when page count is not known in paginator as of now. |
Description
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}
andFirst <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
The text was updated successfully, but these errors were encountered: