Sha256: ad442336d2ebcf2b11720e73b244e0e9bfa9d262f950bb144900efda16cea1e1

Contents?: true

Size: 946 Bytes

Versions: 14

Compression:

Stored size: 946 Bytes

Contents

module UiBibz::Ui::Core

  # Create a row
  #
  # 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
  #
  # ==== Signatures
  #
  #   UiBibz::Ui::Core::Row.new(content, options = {}, html_options = {})
  #
  #   UiBibz::Ui::Core::Row.new(options = {}, html_options = {}) do
  #     #content
  #   end
  #
  # ==== Helper
  #
  #  row(content, options = {}, html_options = {})
  #
  #  row(options = {}, html_options = {}) do
  #    content
  #  end
  #
  class Row < 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 :div, content, html_options
    end

  private

    def component_html_classes
      'row'
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.alpha14 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha13 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha12 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha11 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha10 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha9 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha8 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha7 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha6 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha5 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha4 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha3 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha2 lib/ui_bibz/ui/core/layout/row.rb
ui_bibz-2.0.0.alpha lib/ui_bibz/ui/core/layout/row.rb