lib/pagy/extras/initializer_example.rb in pagy-0.13.1 vs lib/pagy/extras/initializer_example.rb in pagy-0.14.0

- old
+ new

@@ -19,20 +19,24 @@ # Compact: An alternative UI that combines the pagination with the nav info in one compact element # See https://ddnexus.github.io/pagy/extras/compact # require 'pagy/extras/compact' -# Items: Handle the page :items passed with the params +# Items: Allow the client to request a custom number of items per page with a ready to use selector UI # See https://ddnexus.github.io/pagy/extras/items # require 'pagy/extras/items' # Pagy::VARS[:items_param] = :items # default # Pagy::VARS[:max_items] = 100 # default +# Materialize: Nav helper for Materialize pagination +# See https://ddnexus.github.io/pagy/extras/materialize +# require 'pagy/extras/materialize' + # Out Of Range: Allow for easy handling of out of range pages # See https://ddnexus.github.io/pagy/extras/out_of_range -# Pagy::VARS[:out_of_range_mode] = :last_page # default (other options :empty_page and :exception ) +# Pagy::VARS[:out_of_range_mode] = :last_page # default (other options: :empty_page and :exception) -# Responsive: On resize, the number of page links will adapt in real-time to the available window or container width +# Responsive: On resize, the number of page links will adapt in real-time to the available window/container width # See https://ddnexus.github.io/pagy/extras/responsive # require 'pagy/extras/responsive' # See https://ddnexus.github.io/pagy/extras/responsive#breakpoints # Pagy::VARS[:breakpoints] = { 0 => [1,2,2,1], 350 => [2,3,3,2], 550 => [3,4,4,3] } # example of width/size pairs