Module: Leaf::ViewHelpers

Defined in:
lib/leaf/view_helpers.rb,
lib/leaf/view_helpers/base.rb,
lib/leaf/view_helpers/link_renderer.rb,
lib/leaf/view_helpers/list_renderer.rb,
lib/leaf/view_helpers/link_renderer_base.rb

Overview

Leaf view helpers

The main view helper is leaf. It renders the pagination links for the given collection.

Read more in Leaf::ViewHelpers::Base

Defined Under Namespace

Modules: Base Classes: LinkRenderer, LinkRendererBase, ListRenderer

Class Method Summary collapse

Class Method Details

.pagination_optionsObject

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 page’



16
# File 'lib/leaf/view_helpers.rb', line 16

def self.pagination_options() @pagination_options; end

.pagination_options=(value) ⇒ Object

Overrides the default pagination_options



18
# File 'lib/leaf/view_helpers.rb', line 18

def self.pagination_options=(value) @pagination_options = value; end