Class: Ruflet::UI::Controls::RufletComponents::CircleLayerControl

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

Constant Summary collapse

TYPE =
"circlelayer".freeze
WIRE =
"CircleLayer".freeze

Constants inherited from Control

Control::HOST_EXPANDED_TYPES

Instance Attribute Summary

Attributes inherited from Control

#children, #id, #props, #runtime_page, #type, #wire_id

Instance Method Summary collapse

Methods inherited from Control

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

Constructor Details

#initialize(id: nil, circles: nil, visible: nil) ⇒ CircleLayerControl

Returns a new instance of CircleLayerControl.



140
141
142
143
144
145
# File 'lib/ruflet_ui/ruflet/ui/controls/materials/map_controls.rb', line 140

def initialize(id: nil, circles: nil, visible: nil)
  props = {}
  props[:circles] = circles unless circles.nil?
  props[:visible] = visible unless visible.nil?
  super(type: TYPE, id: id, **props)
end