SvgAttr

com.raquo.laminar.keys.SvgAttr
See theSvgAttr companion object
class SvgAttr[V](val localName: String, val codec: Codec[V, String], val namespacePrefix: Option[String]) extends Key

This class represents an Svg Element Attribute. Meaning the key that can be set, not the whole a key-value pair.

Type parameters

V

type of values that this Attribute can be set to

Value parameters

localName
  • Unqualified name, without the namespace prefix
namespacePrefix
  • e.g. "xlink". For namespace URI, see namespaceUri

Attributes

Companion
object
Graph
Supertypes
class Key
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def :=(value: V): SvgAttrSetter[V]
def <--(values: Source[V]): SvgAttrUpdater[V]
def apply(value: V): SvgAttrSetter[V]
def maybe(value: Option[V]): Setter[SvgElement]

Concrete fields

val codec: Codec[V, String]
val localName: String
override val name: String

Qualified name, including namespace

Qualified name, including namespace

Attributes

val namespacePrefix: Option[String]
val namespaceUri: Option[String]