Sha256: 7068bb9c08a22fd817ae8c862191599e1b1bfc94d877b4ceb495bb1c905577fe

Contents?: true

Size: 707 Bytes

Versions: 2

Compression:

Stored size: 707 Bytes

Contents

module BootstrapIt
  #
  module ViewHelpers
    #
    # Pagination
    #
    # @author [alexiss]
    #
    class Pagination < WrapIt::Container
      include Sizable

      default_tag 'ul'
      html_class 'pagination'

      child :link_item, ListLinkItem
    end

    #
    # Pager
    #
    # @author [alexiss]
    #
    class Pager < WrapIt::Container
      default_tag 'ul'
      html_class 'pager'
      child :link_item, ListLinkItem
      child :previous, ListLinkItem, [li_class: 'previous']
      child :next, ListLinkItem, [li_class: 'next']
    end

    WrapIt.register :pagination, 'BootstrapIt::ViewHelpers::Pagination'
    WrapIt.register :pager, 'BootstrapIt::ViewHelpers::Pager'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bootstrap_it-0.1.1 lib/bootstrap_it/view_helpers/pagination.rb
bootstrap_it-0.1.0 lib/bootstrap_it/view_helpers/pagination.rb