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