Module: UiBibz::Helpers::Ui::Core::LayoutsHelper

Included in:
UiBibz::Helpers::Ui::CoreHelper
Defined in:
lib/ui_bibz/helpers/ui/core/layouts_helper.rb

Instance Method Summary collapse

Instance Method Details

#ui_col(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Col Component

options (Hash) html_options (Hash)



20
21
22
23
24
25
26
# File 'lib/ui_bibz/helpers/ui/core/layouts_helper.rb', line 20

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

#ui_container(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Container Component

options (Hash) html_options (Hash)



32
33
34
# File 'lib/ui_bibz/helpers/ui/core/layouts_helper.rb', line 32

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

#ui_row(content = nil, options = nil, html_options = nil, &block) ⇒ Object

Row Component

options (Hash) html_options (Hash)



8
9
10
11
12
13
14
# File 'lib/ui_bibz/helpers/ui/core/layouts_helper.rb', line 8

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