Module: Bs5ExpandableListGroup::ViewComponentsHelper

Defined in:
app/helpers/bs5_expandable_list_group/view_components_helper.rb

Instance Method Summary collapse

Instance Method Details

#bs5_expandable_list_group(*args) ⇒ Object



3
4
5
6
7
# File 'app/helpers/bs5_expandable_list_group/view_components_helper.rb', line 3

def bs5_expandable_list_group(*args)
  render ::Bs5::ExpandableList::GroupComponent.new(*args) do |c|
    yield c if block_given?
  end
end

#bs5_expandable_list_group_item(*args) ⇒ Object



9
10
11
12
13
# File 'app/helpers/bs5_expandable_list_group/view_components_helper.rb', line 9

def bs5_expandable_list_group_item(*args)
  render ::Bs5::ExpandableList::GroupItemComponent.new(*args) do |c|
    yield c if block_given?
  end
end