You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team,
I'm implementing the pagination indicators and figuring out that we only have a method to return all pages (getPageOptions).
If you check Ant pagination component here -> https://ant.design/components/pagination#components-pagination-demo-more, you can see that they have a maximum number to display if we have many pages.
I've added this functionality for my own but I would like to bring it up here for the team to consider. We can either adjust the current getPageOptions to have a parameter like maxToDisplay or have a new method to return only visible pages based on the maxToDisplay input.
I can also help add this feature & create a pull request if you don't mind.
Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi team,
I'm implementing the pagination indicators and figuring out that we only have a method to return all pages (
getPageOptions
).If you check Ant pagination component here -> https://ant.design/components/pagination#components-pagination-demo-more, you can see that they have a maximum number to display if we have many pages.
I've added this functionality for my own but I would like to bring it up here for the team to consider. We can either adjust the current
getPageOptions
to have a parameter likemaxToDisplay
or have a new method to return onlyvisible pages
based on themaxToDisplay
input.I can also help add this feature & create a pull request if you don't mind.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions