api-pagination
api-pagination copied to clipboard
Pagy max_per_page
According to the readme:
Pagy does not have a built-in way to specify a maximum number of items per page
Pagy does support dynamic items per page with the Items plugin https://ddnexus.github.io/pagy/extras/items. In this case there is a setting Pagy::VARS[:max_items]
.
Can this be used instead of setting an unsupported variable in Pagy? Pagy::VARS[:max_per_page] = 100
as specified in the readme.
cc @ddnexus
Also reported in https://github.com/davidcelis/api-pagination/issues/103#issuecomment-399197741