© 2018 Domizio DemichelisMIT License

Bootstrap Extra

This extra adds nav helper and templates for Bootstrap pagination.

Synopsys

See extras for general usage info.

Render the navigation links in some view… with a fast helper:

<%== pagy_nav_bootstrap(@pagy) %>

or with a template:

<%== render 'pagy/nav_bootstrap', locals: {pagy: @pagy} %>

Files

This extra is composed of 4 files:

Methods

This extra adds one nav helpers to the Pagy::Frontend module. You can customize it by overriding it directly in your own view helper.

pagy_nav_bootstrap(pagy)

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

The nav_bootstrap.* templates produce the same output, and can be used as an easier (but slower) starting point to override it.

Optional Template Files

See Using Templates.