Class: Solrengine::Ui::CollapseComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Solrengine::Ui::CollapseComponent
- Defined in:
- app/components/solrengine/ui/collapse_component.rb
Instance Attribute Summary collapse
-
#expanded ⇒ Object
readonly
Returns the value of attribute expanded.
Instance Method Summary collapse
-
#initialize(expanded: false) ⇒ CollapseComponent
constructor
A new instance of CollapseComponent.
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 = end |
Instance Attribute Details
#expanded ⇒ Object (readonly)
Returns the value of attribute expanded.
9 10 11 |
# File 'app/components/solrengine/ui/collapse_component.rb', line 9 def @expanded end |