# Materialize Extra

In 

Add nav helpers for the Materialize CSS pagination component.

Try it now!

# Synopsis

pagy.rb (initializer)
require 'pagy/extras/materialize'
View (helper)
<%== pagy_materialize_nav(@pagy, **vars) %>
<%== pagy_materialize_nav_js(@pagy, **vars) %>
<%== pagy_materialize_combo_nav_js(@pagy, **vars) %>

See Javascript if you use pagy_materialize_nav_js or pagy_materialize_combo_nav_js.

# Methods

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

materialize_nav
materialize_nav

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

See the pagy_nav(pagy, **vars) documentation.

Warning: Bootstrap style shown above as a representative example - the responsive pagy_materialize_nav_js looks like the pagy_materialize_nav helper.
Warning: Bootstrap style shown above as a representative example - the responsive pagy_materialize_nav_js looks like the pagy_materialize_nav helper.

It's rendered on the client, with optional responsiveness. See the Javascript Navs documentation for more information.

materialize_combo_nav_js
materialize_combo_nav_js

See the Javascript Combo Navs documentation.