© 2017-2019 Domizio DemichelisMIT License

Semantic UI Extra

This extra adds 3 nav helpers for Semantic UI CSS pagination component.

Synopsis

See extras for general usage info.

In the pagy.rb initializer:

require 'pagy/extras/semantic'

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

<%== pagy_semantic_nav(@pagy) %>
<%== pagy_semantic_nav_js(@pagy) %>
<%== pagy_semantic_combo_nav_js(@pagy) %>

Files

Methods

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

pagy_semantic_nav(pagy)

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

pagy_semantic_nav_js(pagy, …)

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

See more details in the javascript navs documentation.

pagy_semantic_combo_nav_js(pagy, …)

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

See more details in the compact_navs_js documentation.