title |
---|
Foundation |
This extra adds nav helper and templates for the Foundation pagination component.
See extras for general usage info.
In the pagy.rb
initializer:
require 'pagy/extras/foundation'
Render the navigation links in some view... with a fast helper:
<%== pagy_foundation_nav(@pagy) %>
<%== pagy_foundation_nav_js(@pagy) %>
<%== pagy_foundation_combo_nav_js(@pagy) %>
or with a template:
<%== render partial: 'pagy/foundation_nav', locals: {pagy: @pagy} %>
Configure javascript if you use pagy_foundation_nav_js
or pagy_foundation_combo_nav_js
.
- foundation.rb
- foundation_nav.html.erb (optional template)
- foundation_nav.html.haml (optional template)
- foundation_nav.html.slim (optional template)
This extra adds 3 nav helpers to the Pagy::Frontend
module. You can customize them by direct overriding in your own view helper.
This method is the same as the pagy_nav
, but customized for Foundation.
The foundation_nav.*
templates produce the same output, and can be used as an easier (but slower) starting point to override it. See Using Templates.
This method is the same as the pagy_nav_js
, but customized for the Foundation framework.
See more details in the javascript navs documentation.
This method is the same as the pagy_combo_nav_js
, but customized for the Foundation framework.
See more details in the compact_navs_js documentation.