Class: Spark::StickyPanel

Inherits:
Component::Base show all
Defined in:
app/components/spark/sticky_panel.rb

Instance Method Summary collapse

Methods inherited from Component::Base

#selector, #to_s, #unique_id

Constructor Details

#initializeStickyPanel

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