question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[terra-paginator] Progressive-Paginator add support for unknown total pages

See original GitHub issue

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} 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) Screen Shot 2020-09-29 at 7 22 31 AM

Above tiny breakpoint: Page 2+ (Previous and Next are both active) Screen Shot 2020-09-29 at 7 22 55 AM

Tiny breakpoint: Page 1 (Previous is dithered, Next is active) Screen Shot 2020-09-29 at 7 24 17 AM

Tiny breakpoint: Page 2+ (Previous and Next are both active) Screen Shot 2020-09-29 at 7 24 38 AM

Related

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
dkschoonovercommented, Oct 26, 2020

@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.

1reaction
neilpfeiffercommented, Oct 16, 2020

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, and itemCountPerPage) 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found