Class: Ruflet::UI::Controls::RufletComponents::AnimationExtensionControl

Inherits:
Control
  • Object
show all
Defined in:
lib/ruflet_ui/ruflet/ui/controls/materials/animation_extension_controls.rb

Direct Known Subclasses

LottieControl, RiveControl

Constant Summary collapse

KEYWORDS =
[].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 Control

#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch

Constructor Details

#initialize(type:, id: nil, **props) ⇒ AnimationExtensionControl

Returns a new instance of AnimationExtensionControl.



10
11
12
13
14
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/animation_extension_controls.rb', line 10

def initialize(type:, id: nil, **props)
  compact = {}
  props.each { |key, value| compact[key] = value unless value.nil? }
  super(type: type, id: id, **compact)
end