© 2017-2019 Domizio DemichelisMIT License

➡ Chat Support on Gitter ➡

UIkit Extra

This extra adds nav helpers and templates for the UIkit pagination component.

Synopsis

See extras for general usage info.

In the pagy.rb initializer:

require 'pagy/extras/uikit'

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

<%== pagy_uikit_nav(@pagy) %>

or with a template:

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

Files

Methods

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

pagy_uikit_nav(pagy)

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

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

pagy_uikit_nav_js(pagy, …)

This method is the same as the pagy_nav_js, but customized for the UIkit framework.

See more details in the javascript navs documentation.

pagy_uikit_combo_nav_js(pagy, …)

This method is the same as the pagy_combo_nav_js, but customized for the UIkit framework.

Here is an example:

uikit_combo_nav_js

See more details in the javascript compact navs documentation.