© 2017-2022 Domizio DemichelisMIT License

➡ Chat Support on Gitter ➡

Navs Extra

This extra adds a couple of javascript nav helpers to the Pagy::Frontend module: pagy_combo_nav_js and pagy_nav_js. These are the unstyled versions of the javascript-powered nav helpers.

Other extras (e.g. bootstrap, bulma, foundation, materialize, semantic) provide framework-styled versions of the same nav helpers, so you may not need this extra if you use one of the above framework-styled extra.


See extras for general usage info.

In the pagy.rb initializer:

require 'pagy/extras/navs'

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

<%== pagy_nav_js(@pagy, ...) %>
<%== pagy_combo_nav_js(@pagy, ...) %>

See Javascript.



pagy_nav_js(pagy, …)

See the Javascript Navs documentation.

pagy_combo_nav_js(pagy, …)

See the Javascript Combo Navs documentation.