Class: Ruflet::UI::Controls::RufletComponents::DialogsControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/shared/dialogs_control.rb
Constant Summary collapse
- TYPE =
"dialogs".freeze
- WIRE =
"Dialogs".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, controls: nil, data: nil, key: nil) ⇒ DialogsControl
constructor
A new instance of DialogsControl.
Methods inherited from Control
#emit, generate_id, #has_handler?, #on, #to_patch
Constructor Details
#initialize(id: nil, controls: nil, data: nil, key: nil) ⇒ DialogsControl
Returns a new instance of DialogsControl.
11 12 13 14 15 16 17 |
# File 'lib/ruflet_ui/ruflet/ui/controls/shared/dialogs_control.rb', line 11 def initialize(id: nil, controls: nil, data: nil, key: nil) props = {} props[:controls] = controls unless controls.nil? props[:data] = data unless data.nil? props[:key] = key unless key.nil? super(type: TYPE, id: id, **props) end |