© 2018 Domizio DemichelisMIT License

Semantic UI Extra

This extra adds nav helper and templates for Semantic UI CSS pagination component.

Synopsys

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_nav_semantic(@pagy) %>
<%== pagy_nav_compact_semantic(@pagy) %>
<%== pagy_nav_responsive_semantic(@pagy) %>

Files

This extra is composed of 1 file:

Methods

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

pagy_nav_semantic(pagy)

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

pagy_nav_compact_semantic(pagy, …)

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

See more details in the compact navs documentation.

pagy_nav_responsive_semantic(pagy, …)

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

See more details in the responsive navs documentation.

Templates

There is currently no template for Semantic UI. Please, create a Pull Request or an Issue requesting that.