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

Change page limit globally doesn't work, he parameter page_limit has no effect #8

Open
philippe-levan opened this issue Mar 15, 2023 · 0 comments

Comments

@philippe-levan
Copy link
Member

The documentation says we can change the paginator size with

knp_paginator:
    page_limit: 3

but it has no effect. The parameter in knp should be knp_paginator.default_options.default_limit but it is not publicly accessible.

A config parameter should have an impact on the $this->itemsPerPage in the GridBuilder class. I believe the best solution should be to add a custom parameter for the datagrid bundle.

It could be the occasion to add other default parameters (like the default template for example).

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

1 participant