Class: Solrengine::Ui::CollapseComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/solrengine/ui/collapse_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(expanded: false) ⇒ CollapseComponent

Returns a new instance of CollapseComponent.



11
12
13
# File 'app/components/solrengine/ui/collapse_component.rb', line 11

def initialize(expanded: false)
  @expanded = expanded
end

Instance Attribute Details

#expandedObject (readonly)

Returns the value of attribute expanded.



9
10
11
# File 'app/components/solrengine/ui/collapse_component.rb', line 9

def expanded
  @expanded
end