#
Bootstrap Extra
Add nav helpers for the Bootstrap pagination component.
#
Synopsis
pagy.rb (initializer)
require 'pagy/extras/bootstrap'
View (helper)
<%== 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
.
#
Methods
This extra adds 3 nav helpers to the Pagy::Frontend
module.
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.