Class: Ruflet::UI::Controls::RufletComponents::CandlestickChartSpotControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::CandlestickChartSpotControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Constant Summary collapse
- TYPE =
"candlestickchartspot".freeze
- WIRE =
"CandlestickChartSpot".freeze
Constants inherited from Control
Instance Attribute Summary
Attributes inherited from Control
#children, #id, #props, #runtime_page, #type, #wire_id
Instance Method Summary collapse
-
#initialize(id: nil, x: nil, open: nil, high: nil, low: nil, close: nil, selected: nil) ⇒ CandlestickChartSpotControl
constructor
A new instance of CandlestickChartSpotControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, x: nil, open: nil, high: nil, low: nil, close: nil, selected: nil) ⇒ CandlestickChartSpotControl
Returns a new instance of CandlestickChartSpotControl.
218 219 220 221 222 223 224 225 226 227 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 218 def initialize(id: nil, x: nil, open: nil, high: nil, low: nil, close: nil, selected: nil) props = {} props[:x] = x unless x.nil? props[:open] = open unless open.nil? props[:high] = high unless high.nil? props[:low] = low unless low.nil? props[:close] = close unless close.nil? props[:selected] = selected unless selected.nil? super(type: TYPE, id: id, **props) end |