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
-
#ui_list(content = nil, options = nil, html_options = nil, &block) ⇒ Object
List Component.
-
#ui_list_group(content = nil, options = nil, html_options = nil) ⇒ Object
List Group Component.
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, = nil, = nil, &block) if tapped?(block) UiBibz::Ui::Core::Lists::Components::List.new(content, , ).tap(&block).render else UiBibz::Ui::Core::Lists::Components::List.new(content, , , &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, = nil, = nil, &) UiBibz::Ui::Core::Lists::ListGroup.new(content, , ).tap(&).render end |