Module: Voom::Presenters::DSL::Components::Mixins::ExpansionPanels

Included in:
Form, Common
Defined in:
lib/voom/presenters/dsl/components/mixins/expansion_panels.rb

Instance Method Summary collapse

Instance Method Details

#expansion_panel(text = nil, **attributes, &block) ⇒ Object



7
8
9
# File 'lib/voom/presenters/dsl/components/mixins/expansion_panels.rb', line 7

def expansion_panel(text=nil, **attributes, &block)
  self << Components::ExpansionPanel.new(parent: self, text: text, **attributes, &block)
end