© 2017-2022 Domizio DemichelisMIT License

➡ Chat Support on Gitter ➡

Bulma Extra

This extra adds nav helper and templates for the Bulma CSS pagination component.


See extras for general usage info.

In the pagy.rb initializer:

require 'pagy/extras/bulma'

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

<%== pagy_bulma_nav(@pagy, ...) %>
<%== pagy_bulma_nav_js(@pagy, ...) %>
<%== pagy_bulma_combo_nav_js(@pagy, ...) %>

or with a template:

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

See Javascript if you use pagy_bulma_nav_js or pagy_bulma_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 Bulma.

See the pagy_nav(pagy, …) documentation.

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

pagy_bulma_nav_js(pagy, …)

See the Javascript Navs documentation.

pagy_bulma_combo_nav_js(pagy, …)


See the Javascript Combo Navs documentation.