SvgBuilders

trait SvgBuilders extends EventPropBuilder[[Ev <: Event] =>> ReactiveEventProp[Ev], Event] with SvgAttrBuilder[ReactiveSvgAttr] with SvgTagBuilder[[Ref <: Element] =>> SvgTag[Ref], Element]
trait SvgTagBuilder[[Ref <: Element] =>> SvgTag[Ref], Element]
trait SvgAttrBuilder[ReactiveSvgAttr]
trait EventPropBuilder[[Ev <: Event] =>> ReactiveEventProp[Ev], Event]
class Object
trait Matchable
class Any

Value members

Concrete methods

def customEventProp[Ev <: Event](key: String): ReactiveEventProp[Ev]
Type parameters:
Ev
  • event type in JS, e.g. js.dom.MouseEvent
Value parameters:
key
  • event type in JS, e.g. "click"
def customSvgAttr[V](key: String, codec: Codec[V, String], namespace: Option[String]): ReactiveSvgAttr[V]

Create custom SVG attr (Note: for HTML attrs, use L.customHtmlAttr)

Create custom SVG attr (Note: for HTML attrs, use L.customHtmlAttr)

Type parameters:
V
  • value type for this attr in Scala
Value parameters:
codec
  • used to translate V <-> String, e.g. StringAsIsCodec,
key
  • name of the attribute, e.g. "value"
def customSvgTag[Ref <: Element](tagName: String): SvgTag[Ref]

Note: this simply creates an instance of SvgTag.

Note: this simply creates an instance of SvgTag.

  • This does not create the element (to do that, call .apply on the returned tag instance)
Type parameters:
Ref
  • type of elements with this tag, e.g. dom.svg.Circle for "circle" tag
Value parameters:
tagName
  • e.g. "circle"
override protected def eventProp[Ev <: Event](key: String): ReactiveEventProp[Ev]
Definition Classes
EventPropBuilder
override protected def svgAttr[V](key: String, codec: Codec[V, String], namespace: Option[String]): ReactiveSvgAttr[V]

Create an SVG Attribute

Create an SVG Attribute

Definition Classes
SvgAttrBuilder
override def svgTag[Ref <: Element](tagName: String, void: Boolean): SvgTag[Ref]
Definition Classes
SvgTagBuilder

Inherited methods

protected def doubleSvgAttr(key: String, namespace: Option[String]): A[Double]
Inherited from:
SvgAttrBuilder
protected def intSvgAttr(key: String, namespace: Option[String]): A[Int]
Inherited from:
SvgAttrBuilder
protected def stringSvgAttr(key: String, namespace: Option[String]): A[String]
Inherited from:
SvgAttrBuilder
protected def svgTag[Ref <: Element](tagName: String): T[Ref]
Inherited from:
SvgTagBuilder