Class: PhlexKit::MarkerContent

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

Overview

Text of a Marker. See marker.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ MarkerContent

Returns a new instance of MarkerContent.



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

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

Instance Method Details

#view_templateObject



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

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