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
- KEYWORDS =
[:x, :y].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, y: nil) ⇒ LineChartDataPointControl
constructor
A new instance of LineChartDataPointControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(id: nil, x: nil, y: nil) ⇒ LineChartDataPointControl
Returns a new instance of LineChartDataPointControl.
158 159 160 161 162 163 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 158 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 |