Class: Ruflet::UI::Controls::RufletComponents::ChartExtensionControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::ChartExtensionControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Overview
Flet Charts evolves independently from core Flet. Keep its Ruby controls open to the extension's current property surface while retaining typed classes and exact wire names.
Direct Known Subclasses
BarChartControl, BarChartGroupControl, BarChartRodControl, BarChartRodStackItemControl, CandlestickChartControl, CandlestickChartSpotControl, ChartAxisControl, ChartAxisLabelControl, LineChartControl, LineChartDataControl, LineChartDataPointControl, PieChartControl, PieChartSectionControl, RadarChartControl, RadarChartTitleControl, RadarDataSetControl, RadarDataSetEntryControl, ScatterChartControl, ScatterChartSpotControl
Constant Summary collapse
- KEYWORDS =
[].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(type:, id: nil, **props) ⇒ ChartExtensionControl
constructor
A new instance of ChartExtensionControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(type:, id: nil, **props) ⇒ ChartExtensionControl
Returns a new instance of ChartExtensionControl.
13 14 15 16 17 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 13 def initialize(type:, id: nil, **props) compact = {} props.each { |key, value| compact[key] = value unless value.nil? } super(type: type, id: id, **compact) end |