Class: Spark::StickyPanel
- Inherits:
-
Component::Base
- Object
- ActionView::Component::Base
- Component::Base
- Spark::StickyPanel
- Defined in:
- app/components/spark/sticky_panel.rb
Instance Method Summary collapse
-
#initialize ⇒ StickyPanel
constructor
A new instance of StickyPanel.
Methods inherited from Component::Base
Constructor Details
#initialize ⇒ StickyPanel
Returns a new instance of StickyPanel.
5 6 7 8 9 10 |
# File 'app/components/spark/sticky_panel.rb', line 5 def initialize(*) super data.add(sticky: :true) data.add(sticky_constrain: :true) if @constrain end |