Sha256: 6e57e7e1ecb94455972ab2653513a3d3b54879660a8a31d6aaf4d78f4a1008f4

Contents?: true

Size: 909 Bytes

Versions: 1

Compression:

Stored size: 909 Bytes

Contents

module BootstrapIt
  #
  module ViewHelpers
    #
    # Pagination
    #
    # @author Alexey Ovchinnikov <alexiss@cybernetlab.ru>
    #
    # @see http://getbootstrap.com/components/#pagination Bootstrap docs
    class Pagination < WrapIt::Container
      include Sizable

      default_tag 'ul'
      html_class 'pagination'

      child :link_item, ListLinkItem
    end

    #
    # Pager
    #
    # @author Alexey Ovchinnikov <alexiss@cybernetlab.ru>
    #
    # @see http://getbootstrap.com/components/#pagination-pager Bootstrap docs
    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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap_it-0.1.2 lib/bootstrap_it/view_helpers/pagination.rb