#
Bulma Extra
Add nav helpers for the Bulma CSS pagination component.
#
Synopsis
pagy.rb (initializer)
require 'pagy/extras/bulma'
View (helpers)
<%== pagy_bulma_nav(@pagy, **vars) %>
<%== pagy_bulma_nav_js(@pagy, **vars) %>
<%== pagy_bulma_combo_nav_js(@pagy, **vars) %>
See Javascript if you use pagy_bulma_nav_js
or pagy_bulma_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_bulma_nav(pagy)
This method is the same as the pagy_nav
, but customized for Bulma.
See the pagy_nav(pagy, **vars) documentation.
pagy_bulma_nav_js(pagy, **vars)
It's rendered on the client, with optional responsiveness. See the Javascript Navs documentation for more information.
pagy_bulma_combo_nav_js(pagy, **vars)
See the Javascript Combo Navs documentation.