Class: PhlexKit::MarkerIcon

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/marker/marker_icon.rb

Overview

16px muted icon slot of a Marker. See marker.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ MarkerIcon

Returns a new instance of MarkerIcon.



4
# File 'app/components/phlex_kit/marker/marker_icon.rb', line 4

def initialize(**attrs) = (@attrs = attrs)

Instance Method Details

#view_templateObject



5
# File 'app/components/phlex_kit/marker/marker_icon.rb', line 5

def view_template(&) = span(**mix({ class: "pk-marker-icon" }, @attrs), &)