Module: UiBibz::Helpers::Ui::Core::ListsHelper

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

Instance Method Summary collapse

Instance Method Details

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

List Component

options (Hash) html_options (Hash)



16
17
18
19
20
21
22
# File 'lib/ui_bibz/helpers/ui/core/lists_helper.rb', line 16

def ui_list(content = nil, options = nil, html_options = nil, &block)
  if tapped?(block)
    UiBibz::Ui::Core::Lists::Components::List.new(content, options, html_options).tap(&block).render
  else
    UiBibz::Ui::Core::Lists::Components::List.new(content, options, html_options, &block).render
  end
end

#ui_list_group(content = nil, options = nil, html_options = nil) ⇒ Object

List Group Component

options (Hash) html_options (Hash)



8
9
10
# File 'lib/ui_bibz/helpers/ui/core/lists_helper.rb', line 8

def ui_list_group(content = nil, options = nil, html_options = nil, &)
  UiBibz::Ui::Core::Lists::ListGroup.new(content, options, html_options).tap(&).render
end