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
Constants inherited from Control
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
#emit, generate_id, #has_handler?, #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.
262 263 264 265 266 267 268 269 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 262 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 |