ReflectedHtmlAttrBuilder

trait ReflectedHtmlAttrBuilder[RA[_, _]]

This trait builds objects representing reflected attributes which are typically on the left hand side of the reflectedAttr := value syntax.

This trait builds objects representing reflected attributes which are typically on the left hand side of the reflectedAttr := value syntax.

Reflected attributes are explained in the README file.

Also see com.raquo.domtypes.generic.defs.reflectedAttrs.ReflectedHtmlAttrs for a summary of reflected attributes. Basically it's a subset of HTML attributes that are fully mirrored as DOM properties, so typically you don't want to load both an attribute and a property of the same name.

Type Params
RA

Reflected Attribute, canonically either com.raquo.domtypes.generic.keys.HtmlAttr or com.raquo.domtypes.generic.keys.Prop depending on whether you want to build properties or attributes

class Object
trait Matchable
class Any

Value members

Abstract methods

@inline
protected def reflectedAttr[V, DomPropV](attrKey: String, propKey: String, attrCodec: Codec[V, String], propCodec: Codec[V, DomPropV]): RA[V, DomPropV]

Create a reflected attribute

Create a reflected attribute

Concrete methods

@inline
protected def booleanReflectedAttr(attrKey: String, propKey: String, attrCodec: Codec[Boolean, String]): RA[Boolean, Boolean]
@inline
protected def booleanReflectedAttr(key: String, attrCodec: Codec[Boolean, String]): RA[Boolean, Boolean]
@inline
protected def doubleReflectedAttr(key: String): RA[Double, Double]
@inline
protected def intReflectedAttr(attrKey: String, propKey: String): RA[Int, Int]
@inline
protected def intReflectedAttr(key: String): RA[Int, Int]
@inline
protected def stringReflectedAttr(attrKey: String, propKey: String): RA[String, String]
@inline
protected def stringReflectedAttr(key: String): RA[String, String]