Class: Ruflet::UI::Controls::RufletComponents::ChartAxisLabelControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::ChartAxisLabelControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Constant Summary collapse
- TYPE =
"chartaxislabel".freeze
- WIRE =
"l".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, value: nil, label: nil) ⇒ ChartAxisLabelControl
constructor
A new instance of ChartAxisLabelControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, value: nil, label: nil) ⇒ ChartAxisLabelControl
Returns a new instance of ChartAxisLabelControl.
26 27 28 29 30 31 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 26 def initialize(id: nil, value: nil, label: nil) props = {} props[:value] = value unless value.nil? props[:label] = label unless label.nil? super(type: TYPE, id: id, **props) end |