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
- KEYWORDS =
[:value, :label].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, value: nil, label: nil) ⇒ ChartAxisLabelControl
constructor
A new instance of ChartAxisLabelControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(id: nil, value: nil, label: nil) ⇒ ChartAxisLabelControl
Returns a new instance of ChartAxisLabelControl.
28 29 30 31 32 33 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 28 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 |