Skip to content
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 increase data per page #9

Closed
kenshinman opened this issue Jul 11, 2016 · 1 comment
Closed

How to increase data per page #9

kenshinman opened this issue Jul 11, 2016 · 1 comment

Comments

@kenshinman
Copy link

How can I increase the amount of data per page?
i have tried increasing the limit in
{{> defaultBootstrapPaginator pagination=templatePagination limit=15 containerClass="text-center"}}
but it still remains 10 (which is the default). How can i increase this to 20? Thanks

@Kurounin
Copy link
Owner

The limit parameter on the paginator modifies the maximum number of page links to display.
To modify the number of documents displayed on the page use this.pagination.perPage(20);
You can also pass the perPage parameter on init, like this

   this.pagination = new Meteor.Pagination(MyCollection, {
        perPage: 20
    });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants