Class: Ruflet::UI::Controls::RufletComponents::LineChartDataPointControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::LineChartDataPointControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Constant Summary collapse
- TYPE =
"linechartdatapoint".freeze
- WIRE =
"p".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, y: nil) ⇒ LineChartDataPointControl
constructor
A new instance of LineChartDataPointControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, x: nil, y: nil) ⇒ LineChartDataPointControl
Returns a new instance of LineChartDataPointControl.
149 150 151 152 153 154 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 149 def initialize(id: nil, x: nil, y: nil) props = {} props[:x] = x unless x.nil? props[:y] = y unless y.nil? super(type: TYPE, id: id, **props) end |