Class: Ruflet::UI::Controls::RufletComponents::RadarDataSetControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::RadarDataSetControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Constant Summary collapse
- TYPE =
"radardataset".freeze
- WIRE =
"RadarDataSet".freeze
- KEYWORDS =
[:entries, :border_color, :fill_color, :border_width].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, entries: nil, border_color: nil, fill_color: nil, border_width: nil) ⇒ RadarDataSetControl
constructor
A new instance of RadarDataSetControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(id: nil, entries: nil, border_color: nil, fill_color: nil, border_width: nil) ⇒ RadarDataSetControl
Returns a new instance of RadarDataSetControl.
278 279 280 281 282 283 284 285 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 278 def initialize(id: nil, entries: nil, border_color: nil, fill_color: nil, border_width: nil) props = {} props[:entries] = entries unless entries.nil? props[:border_color] = border_color unless border_color.nil? props[:fill_color] = fill_color unless fill_color.nil? props[:border_width] = border_width unless border_width.nil? super(type: TYPE, id: id, **props) end |