© 2017-2022 Domizio DemichelisMIT License

➡ Chat Support on Gitter ➡

Materialize Extra

This extra adds 3 nav helpers for the Materialize CSS pagination component.


See extras for general usage info.

In the pagy.rb initializer:

require 'pagy/extras/materialize'

Render the navigation links in some view… with a fast helper:

<%== pagy_materialize_nav(@pagy, ...) %>
<%== pagy_materialize_nav_js(@pagy, ...) %>
<%== pagy_materialize_combo_nav_js(@pagy, ...) %>

See Javascript if you use pagy_materialize_nav_js or pagy_materialize_combo_nav_js.



This extra adds 3 nav helpers to the Pagy::Frontend module. You can customize them by direct overriding in your own view helper.


This method is the same as the pagy_nav, but customized for Materialize.

See the pagy_nav(pagy, …) documentation.

pagy_materialize_nav_js(pagy, …)

See the Javascript Navs documentation.

pagy_materialize_combo_nav_js(pagy, …)


See the Javascript Combo Navs documentation.