Class: AccordionSection2::Presenter
- Inherits:
-
Object
- Object
- AccordionSection2::Presenter
- Defined in:
- lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.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.
110 111 112 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.rb', line 110 def collapsed @collapsed end |
#instant_transition ⇒ Object
Returns the value of attribute instant_transition.
110 111 112 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.rb', line 110 def instant_transition @instant_transition end |
Instance Method Details
#collapse(instant: false) ⇒ Object
122 123 124 125 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.rb', line 122 def collapse(instant: false) self.instant_transition = instant self.collapsed = true end |
#expand(instant: false) ⇒ Object
117 118 119 120 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.rb', line 117 def (instant: false) self.instant_transition = instant self.collapsed = false end |
#toggle_collapsed(instant: false) ⇒ Object
112 113 114 115 |
# File 'lib/glimmer-dsl-web/samples/hello/hello_component_listeners_default_slot.rb', line 112 def toggle_collapsed(instant: false) self.instant_transition = instant self.collapsed = !collapsed end |