SvgBuilders
trait SvgBuilders extends EventPropBuilder[[Ev <: Event] =>> ReactiveEventProp[Ev], Event] with SvgAttrBuilder[ReactiveSvgAttr] with SvgTagBuilder[[Ref <: Element] =>> SvgTag[Ref], Element]
Value members
Concrete methods
- 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"
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 svgAttr[V](key: String, codec: Codec[V, String], namespace: Option[String]): ReactiveSvgAttr[V]
Create an SVG Attribute
Create an SVG Attribute
- Definition Classes
- SvgAttrBuilder