Class: Ruflet::UI::Controls::RufletComponents::PageletControl
- Defined in:
- lib/ruflet_ui/ruflet/ui/controls/shared/pagelet_control.rb
Constant Summary collapse
- TYPE =
"pagelet".freeze
- WIRE =
"Pagelet".freeze
- KEYWORDS =
[:adaptive, :align, :animate_align, :animate_margin, :animate_offset, :animate_opacity, :animate_position, :animate_rotation, :animate_scale, :animate_size, :appbar, :aspect_ratio, :badge, :bgcolor, :bottom, :bottom_appbar, :bottom_sheet, :col, :content, :data, :disabled, :drawer, :end_drawer, :expand, :expand_loose, :floating_action_button, :floating_action_button_location, :height, :key, :left, :margin, :navigation_bar, :offset, :opacity, :right, :rotate, :rtl, :scale, :size_change_interval, :tooltip, :top, :visible, :width, :on_animation_end, :on_size_change].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, **props) ⇒ PageletControl
constructor
A new instance of PageletControl.
Methods inherited from Control
#attach_handler, #emit, generate_id, #has_handler?, #merge_props, #on, #to_patch
Constructor Details
#initialize(id: nil, **props) ⇒ PageletControl
Returns a new instance of PageletControl.
13 14 15 16 17 18 19 20 |
# File 'lib/ruflet_ui/ruflet/ui/controls/shared/pagelet_control.rb', line 13 def initialize(id: nil, **props) compact = {} props.each do |key, value| raise ArgumentError, "unknown keyword: :#{key}" unless KEYWORDS.include?(key) compact[key] = value unless value.nil? end super(type: TYPE, id: id, **compact) end |