module Leaf::ViewHelpers
Leaf
view helpers¶ ↑
The main view helper is leaf
. It renders the pagination links for the given collection.
Read more in Leaf::ViewHelpers::Base
Public Class Methods
pagination_options()
click to toggle source
Global options for helpers¶ ↑
Options for pagination helpers are optional and get their default values from the Leaf::ViewHelpers.pagination_options
hash. You can write to this hash to override default options on the global level:
Leaf::ViewHelpers.pagination_options[:previous_label]
= 'Previous page'
# File lib/leaf/view_helpers.rb, line 16 def self.pagination_options() @pagination_options; end
pagination_options=(value)
click to toggle source
Overrides the default pagination_options
# File lib/leaf/view_helpers.rb, line 18 def self.pagination_options=(value) @pagination_options = value; end