api-pagination icon indicating copy to clipboard operation
api-pagination copied to clipboard

Pagy max_per_page

Open espen opened this issue 5 years ago • 1 comments

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

espen avatar Nov 15 '18 06:11 espen

Also reported in https://github.com/davidcelis/api-pagination/issues/103#issuecomment-399197741

ddnexus avatar Nov 15 '18 11:11 ddnexus