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 nav helpers and templates for the Bootstrap pagination component.
See extras for general usage info.
In the pagy.rb
initializer:
require 'pagy/extras/bootstrap'
Render the navigation links in some view… with a fast helper:
<%== pagy_bootstrap_nav(@pagy) %>
<%== pagy_bootstrap_nav_js(@pagy) %>
<%== pagy_bootstrap_combo_nav_js(@pagy) %>
or with a template:
<%== render partial: 'pagy/bootstrap_nav', locals: {pagy: @pagy} %>
See Javascript if you use pagy_bootstrap_nav_js
or pagy_bootstrap_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 Bootstrap.
The bootstrap_nav.*
templates produce the same output, and can be used as an easier (but slower) starting point to override it. See Using Templates.
See the Javascript Navs documentation.
See the Javascript Combo Navs documentation.