Class: AccordionSection::Presenter
- Inherits:
-
Object
- Object
- AccordionSection::Presenter
- Defined in:
- lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb
Instance Attribute Summary collapse
-
#collapsed ⇒ Object
Returns the value of attribute collapsed.
-
#instant_transition ⇒ Object
Returns the value of attribute instant_transition.
Instance Method Summary collapse
- #collapse(instant: false) ⇒ Object
- #expand(instant: false) ⇒ Object
- #toggle_collapsed(instant: false) ⇒ Object
Instance Attribute Details
#collapsed ⇒ Object
Returns the value of attribute collapsed.
172 173 174 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb', line 172 def collapsed @collapsed end |
#instant_transition ⇒ Object
Returns the value of attribute instant_transition.
172 173 174 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb', line 172 def instant_transition @instant_transition end |
Instance Method Details
#collapse(instant: false) ⇒ Object
184 185 186 187 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb', line 184 def collapse(instant: false) self.instant_transition = instant self.collapsed = true end |
#expand(instant: false) ⇒ Object
179 180 181 182 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb', line 179 def (instant: false) self.instant_transition = instant self.collapsed = false end |
#toggle_collapsed(instant: false) ⇒ Object
174 175 176 177 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners.rb', line 174 def toggle_collapsed(instant: false) self.instant_transition = instant self.collapsed = !collapsed end |