Sha256: eb73cdf0306bff0db1d1377ab8369dd85c8da778a9bef7a5c83b08ac0ef0ac42

Contents?: true

Size: 1.03 KB

Versions: 13

Compression:

Stored size: 1.03 KB

Contents

# frozen_string_literal: true

module UiBibz::Helpers::Ui::Core::LayoutsHelper
  # Row Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_row(content = nil, options = nil, html_options = nil, &block)
    if tapped?(block)
      UiBibz::Ui::Core::Layouts::Row.new(content, options, html_options).tap(&block).render
    else
      UiBibz::Ui::Core::Layouts::Row.new(content, options, html_options, &block).render
    end
  end

  # Col Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_col(content = nil, options = nil, html_options = nil, &block)
    if tapped?(block)
      UiBibz::Ui::Core::Layouts::Col.new(content, options, html_options).tap(&block).render
    else
      UiBibz::Ui::Core::Layouts::Col.new(content, options, html_options, &block).render
    end
  end

  # Container Component
  #
  # +options+ (Hash)
  # +html_options+ (Hash)
  def ui_container(content = nil, options = nil, html_options = nil, &)
    UiBibz::Ui::Core::Layouts::Container.new(content, options, html_options, &).render
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta18 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta17 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta16 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta15 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta14 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta13 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta10 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta9 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta8 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta7 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta6 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta4 lib/ui_bibz/helpers/ui/core/layouts_helper.rb
ui_bibz-4.0.0.beta3 lib/ui_bibz/helpers/ui/core/layouts_helper.rb