Module: Accordion::AccordionHelper
- Defined in:
- app/helpers/accordion/accordion_helper.rb
Instance Method Summary collapse
Instance Method Details
#accordion(**options) ⇒ Object
5 6 7 8 9 |
# File 'app/helpers/accordion/accordion_helper.rb', line 5 def accordion(**) render(Accordion::AccordionComponent.new(**)) do |c| yield(c) end end |
#item(c, **options) ⇒ Object
11 12 13 14 15 |
# File 'app/helpers/accordion/accordion_helper.rb', line 11 def item(c, **) c.with_item(**) do yield end end |