Class: Ruflet::UI::Controls::RufletComponents::ChartExtensionControl

Inherits:
Control
  • Object
show all
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.

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

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