Class: Ruflet::UI::Controls::RufletComponents::RadarChartTitleControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::RadarChartTitleControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Constant Summary collapse
- TYPE =
"radarcharttitle".freeze
- WIRE =
"RadarChartTitle".freeze
- KEYWORDS =
[:text, :angle, :position_percentage_offset].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, text: nil, angle: nil, position_percentage_offset: nil) ⇒ RadarChartTitleControl
constructor
A new instance of RadarChartTitleControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(id: nil, text: nil, angle: nil, position_percentage_offset: nil) ⇒ RadarChartTitleControl
Returns a new instance of RadarChartTitleControl.
264 265 266 267 268 269 270 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 264 def initialize(id: nil, text: nil, angle: nil, position_percentage_offset: nil) props = {} props[:text] = text unless text.nil? props[:angle] = angle unless angle.nil? props[:position_percentage_offset] = position_percentage_offset unless position_percentage_offset.nil? super(type: TYPE, id: id, **props) end |