Class: Ruflet::UI::Controls::RufletComponents::DataTable2ExtensionControl

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

Constant Summary

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) ⇒ DataTable2ExtensionControl

Returns a new instance of DataTable2ExtensionControl.



8
9
10
11
12
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/datatable2_controls.rb', line 8

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