Class: Protos::Accordion::Item

Inherits:
Component
  • Object
show all
Defined in:
lib/protos/accordion/item.rb

Instance Method Summary collapse

Methods inherited from Component

#initialize

Constructor Details

This class inherits a constructor from Protos::Component

Instance Method Details

#view_template(&block) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/protos/accordion/item.rb', line 12

def view_template(&block)
  li(**attrs) do
    render Collapse.new(
      theme: collapse_theme,
      input_name: @input_name,
      input_type: :radio,
      &block
    )
  end
end