Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.51 KB

bulma.md

File metadata and controls

56 lines (36 loc) · 1.51 KB
title categories image
Bulma
Frontend
Extra
none

Bulma Extra

Add nav helpers for the Bulma CSS pagination component.

Synopsis

require 'pagy/extras/bulma'
<%== 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.

!!!info Overriding Helpers You can customize them by overriding in your own view helper(s). !!!

=== pagy_bulma_nav(pagy)

bulma_nav - medium view size

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)

Warning: Bootstrap style shown above as a representative example - the responsive pagy_bulma_nav_js looks like the pagy_bulma_nav helper.

It's rendered on the client, with optional responsiveness. See the Javascript Navs documentation for more information.

=== pagy_bulma_combo_nav_js(pagy, **vars)

bulma_combo_nav_js

See the Javascript Combo Navs documentation.

===