Class: Ruflet::UI::Controls::RufletComponents::ServiceRegistryControl
- Inherits:
-
Control
- Object
- Control
- Ruflet::UI::Controls::RufletComponents::ServiceRegistryControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/shared/serviceregistry_control.rb
Constant Summary collapse
- TYPE =
"serviceregistry".freeze
- WIRE =
"ServiceRegistry".freeze
- KEYWORDS =
[:_services, :services, :data, :key].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, _services: nil, services: nil, data: nil, key: nil) ⇒ ServiceRegistryControl
constructor
A new instance of ServiceRegistryControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(id: nil, _services: nil, services: nil, data: nil, key: nil) ⇒ ServiceRegistryControl
Returns a new instance of ServiceRegistryControl.
13 14 15 16 17 18 19 20 |
# File 'lib/ruflet_ui/ruflet/ui/controls/shared/serviceregistry_control.rb', line 13 def initialize(id: nil, _services: nil, services: nil, data: nil, key: nil) props = {} mounted_services = _services.nil? ? services : _services props[:_services] = mounted_services unless mounted_services.nil? props[:data] = data unless data.nil? props[:key] = key unless key.nil? super(type: TYPE, id: id, **props) end |