-
-
Notifications
You must be signed in to change notification settings - Fork 329
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display more page item? #269
Comments
I noticed in the render() of Pagination.js var pageBufferSize = props.showLessItems ? 1 : 2;
var left = Math.max(1, current - pageBufferSize);
var right = Math.min(current + pageBufferSize, allPages);
if (current - 1 <= pageBufferSize) {
right = 1 + pageBufferSize * 2;
}
if (allPages - current <= pageBufferSize) {
left = allPages - pageBufferSize * 2;
} Could you add one more prop to allow user chagne the pageBufferSize? |
I also have this problem. Have you solved it? |
I modified its code and created my own pagination |
It's great.Let me refer to it and create my own pagination.Thank you! |
👍🏽 to make this also customizable! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There are space to display more page item. Currently, there is only 1, 2, 3, 4, 5 and 282.
Is there a prop to do it?
Thank you very much.
The text was updated successfully, but these errors were encountered: