title | categories | image | ||
---|---|---|---|---|
Bootstrap |
|
none |
Add nav helpers for the Bootstrap pagination component.
!button corners="pill" variant="success" text=":icon-play: Try it now!"
require 'pagy/extras/bootstrap'
<%== pagy_bootstrap_nav(@pagy, **vars) %>
<%== pagy_bootstrap_nav_js(@pagy, **vars) %>
<%== pagy_bootstrap_combo_nav_js(@pagy, **vars) %>
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.
!!!info Overriding Helpers You can customize them by overriding in your own view helper(s). !!!
=== pagy_bootstrap_nav(pagy, **vars)
This method is the same as the pagy_nav
, but customized for Bootstrap.
See: pagy_nav(pagy, **vars).
=== pagy_bootstrap_nav_js(pagy, **vars)
See: Javascript Navs.
=== pagy_bootstrap_combo_nav_js(pagy, **vars)
See: Javascript Combo Navs.
===