Enable 'pagy/extras/items' for customising items parameter

This commit is contained in:
Matt-Yorkley
2021-06-29 11:40:58 +01:00
parent 18d98500e9
commit b3c4a38b0f

View File

@@ -107,7 +107,7 @@ Pagy::VARS[:items] = 100 # default
# Items extra: Allow the client to request a custom number of items per page with an optional selector UI
# See https://ddnexus.github.io/pagy/extras/items
# require 'pagy/extras/items'
require 'pagy/extras/items'
Pagy::VARS[:items_param] = :per_page # default
Pagy::VARS[:max_items] = 100 # default
# set to false if you want to make :enable_items_extra an opt-in variable