Sha256: 52ff1e37ed7e63f43faa9c05c47e85010c65af8b530897e832c5262cb4fcb133

Contents?: true

Size: 787 Bytes

Versions: 7

Compression:

Stored size: 787 Bytes

Contents

module UiBibz::Ui::Core::Lists::Components

  # Create a listBody
  #
  # This element is an extend of UiBibz::Ui::Core::Component.
  #
  # ==== Attributes
  #
  # * +content+ - Content of element
  # * +options+ - Options of element
  # * +html_options+ - Html Options of element
  #
  # ==== Options
  #
  # You can add HTML attributes using the +html_options+.
  # You can pass arguments in options attribute:
  class ListBody < UiBibz::Ui::Core::Component

    # See UiBibz::Ui::Core::Component.initialize
    def initialize content = nil, options = nil, html_options = nil, &block
      super
    end

    # Render html tag
    def render
      content_tag :p, content, html_options
    end

  private

    def component_html_classes
      'list-group-item-text'
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.alpha32 lib/ui_bibz/ui/core/lists/components/list/list_body.rb
ui_bibz-2.0.0.alpha31 lib/ui_bibz/ui/core/lists/components/list/list_body.rb
ui_bibz-2.0.0.alpha30 lib/ui_bibz/ui/core/lists/components/list/list_body.rb
ui_bibz-2.0.0.alpha29 lib/ui_bibz/ui/core/lists/components/list/list_body.rb
ui_bibz-2.0.0.alpha28 lib/ui_bibz/ui/core/lists/components/list/list_body.rb
ui_bibz-2.0.0.alpha27 lib/ui_bibz/ui/core/lists/components/list/list_body.rb
ui_bibz-2.0.0.alpha26 lib/ui_bibz/ui/core/lists/components/list/list_body.rb