#
Materialize Extra
Add nav helpers for the Materialize CSS pagination component.
#
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.
pagy_materialize_nav(pagy)
This method is the same as the pagy_nav
, but customized for Materialize.
See the pagy_nav(pagy, **vars) documentation.
pagy_materialize_nav_js(pagy, **vars)
It's rendered on the client, with optional responsiveness. See the Javascript Navs documentation for more information.
pagy_materialize_combo_nav_js(pagy, **vars)
See the Javascript Combo Navs documentation.