mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Enable 'pagy/extras/items' for customising items parameter
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user