Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.42 KB

bootstrap.md

File metadata and controls

56 lines (36 loc) · 1.42 KB
title categories image
Bootstrap
Frontend
Extra
none

Bootstrap Extra

Add nav helpers for the Bootstrap pagination component.

!button corners="pill" variant="success" text=":icon-play: Try it now!"

Synopsis

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.

Methods

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)

pagy_bootstrap_nav

This method is the same as the pagy_nav, but customized for Bootstrap.

See: pagy_nav(pagy, **vars).

=== pagy_bootstrap_nav_js(pagy, **vars)

bootstrap_nav_js: Responsive nav.

See: Javascript Navs.

=== pagy_bootstrap_combo_nav_js(pagy, **vars)

bootstrap_combo_nav_js

See: Javascript Combo Navs.

===