Sha256: c788b84bd2bdd922600da3fada7754abe6e14715a8d4e67c9b06c4142c7d8d8e

Contents?: true

Size: 991 Bytes

Versions: 16

Compression:

Stored size: 991 Bytes

Contents

module UiBibz::Ui::Core::Layouts

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

  private

    def component_html_classes
      'row'
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ui_bibz-2.0.0.alpha32 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha31 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha30 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha29 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha28 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha27 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha26 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha24 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha23 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha22 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha21 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha20 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha19 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha18 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha16 lib/ui_bibz/ui/core/layouts/row.rb
ui_bibz-2.0.0.alpha15 lib/ui_bibz/ui/core/layouts/row.rb