Class: Ruflet::UI::Controls::RufletComponents::BarChartGroupControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::BarChartGroupControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb
Constant Summary collapse
- TYPE =
"barchartgroup".freeze
- WIRE =
"group".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, x: nil, rods: nil, bars_space: nil, showing_tooltip_indicators: nil) ⇒ BarChartGroupControl
constructor
A new instance of BarChartGroupControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, x: nil, rods: nil, bars_space: nil, showing_tooltip_indicators: nil) ⇒ BarChartGroupControl
Returns a new instance of BarChartGroupControl.
64 65 66 67 68 69 70 71 |
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/chart_controls.rb', line 64 def initialize(id: nil, x: nil, rods: nil, bars_space: nil, showing_tooltip_indicators: nil) props = {} props[:x] = x unless x.nil? props[:rods] = rods unless rods.nil? props[:bars_space] = unless .nil? props[:showing_tooltip_indicators] = showing_tooltip_indicators unless showing_tooltip_indicators.nil? super(type: TYPE, id: id, **props) end |