Basic Concepts
How To
Migrate WillPaginate/Kaminari
API
Pagy
Pagy::Backend
Pagy::Frontend
Pagy::Countless
Javascript
Extras
Arel
Array
Bootstrap
Bulma
Countless
Elasticsearch Rails
Foundation
Headers
I18n
Items
Overflow
Materialize
Metadata
Navs
Searchkick
Semantic
Support
Tailwind
Trim
UIkit
➡ Chat Support on Gitter ➡
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.
See the Javascript Navs documentation.
See the Javascript Combo Navs documentation.