Show more pages around current page in stepped pagination #477
Azarchaniel
started this conversation in
Ideas
Replies: 1 comment 14 replies
-
This would be a nice addition. The fastest would be to just override the pagination for component for you. You could also create a PR to add additional numbers. |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I would like to have option to set a number of pages 'around' current page.
Example:
Currently, when I am on page 6, I see something like this < 5 6 7 >.
I would like to have an option, like {numberOfPagesAroundCurrent: 2}, and the result will be < 4 5 6 7 8 >.
{numberOfPagesAroundCurrent: 3} will lead to < 3 4 5 6 7 8 9 >.
Of course, when we are getting to the last page, it should be 'cropped'. The last page is 10, the current is 8 and numberOfPagesAroundCurrent is 3. The result therefore would be < 5 6 7 8 9 10 >. Same for the first page.
Optional parameter, default would be 1 like now.
Beta Was this translation helpful? Give feedback.
All reactions