Class: Ruflet::UI::PlatformControlContracts::Components::ContextMenuControl
- Inherits:
-
PlatformControl
- Object
- Control
- PlatformControl
- Ruflet::UI::PlatformControlContracts::Components::ContextMenuControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/platform_control_contracts.rb
Constant Summary collapse
- TYPE =
"contextmenu".freeze
- WIRE =
"ContextMenu".freeze
- KEYWORDS =
( Controls::RufletComponents::ContextMenuControl::KEYWORDS + i[actions adaptive enable_haptic_feedback] ).uniq.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
Methods inherited from PlatformControl
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #initialize, #merge_props, #on, #to_patch
Constructor Details
This class inherits a constructor from Ruflet::UI::PlatformControlContracts::Components::PlatformControl
Instance Method Details
#open(position: nil, timeout: 10, on_result: nil) ⇒ Object
232 233 234 235 236 |
# File 'lib/ruflet_ui/ruflet/ui/platform_control_contracts.rb', line 232 def open(position: nil, timeout: 10, on_result: nil) args = {} args["position"] = stringify_hash_keys(position) unless position.nil? runtime_page&.invoke(self, "open", args: args, timeout: timeout, on_result: on_result) end |