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
- KEYWORDS =
[:x, :open, :high, :low, :close, :selected].freeze
Constants inherited from Control
Control::HOST_EXPANDED_TYPES, Control::SCHEMA_METADATA_CACHE
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
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #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.
231 232 233 234 235 236 237 238 239 240 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 231 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 |