com.raquo.domtypes.generic.builders

Type members

Classlikes

This trait enables creation of derived style props, such as marginTop.px (accepting Int-s), from the original marginTop (accepting strings)

This trait enables creation of derived style props, such as marginTop.px (accepting Int-s), from the original marginTop (accepting strings)

trait EventPropBuilder[EP[Ev <: DomEvent], DomEvent]

This trait builds event prop objects which are typically found on the left hand side of the onEvent := callback syntax.

This trait builds event prop objects which are typically found on the left hand side of the onEvent := callback syntax.

Type parameters:
DomEvent

Base type for DOM events (dom.Event in Scala JS)

EP

EventProp

trait HtmlAttrBuilder[A[_]]

This trait builds attribute objects which are typically found on the left hand side of the htmlAttr := value syntax.

This trait builds attribute objects which are typically found on the left hand side of the htmlAttr := value syntax.

Type parameters:
A

HTML Attribute

trait HtmlTagBuilder[T[_ <: DomHtmlElement], -DomHtmlElement]

HtmlTagBuilder is a builder of HTML Tags, which themselves are builders of HTML Elements. #factoryfactory

HtmlTagBuilder is a builder of HTML Tags, which themselves are builders of HTML Elements. #factoryfactory

trait PropBuilder[P[_, _]]

This trait builds objects representing properties, which are typically on the left hand side of the prop := value syntax.

This trait builds objects representing properties, which are typically on the left hand side of the prop := value syntax.

Type parameters:
P

DOM Property[ScalaValue, RawDomValue]

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 parameters:
RA

ReflectedAttribute[ScalaValue, PropRawDomValue], either a Prop or an HtmlAttr, depending on whether you want to build properties or attributes

trait StylePropBuilder[Prop[_], Setter[_], DerivedProp[_], LengthNum]

This trait contains functionality for creating CSS Styles and Style Setters.

This trait contains functionality for creating CSS Styles and Style Setters.

Type parameters:
Prop

Representation of a DOM CSS style property, e.g. "background"

Setter

Representation of a key-value pair, for a specific style property and its value

trait SvgAttrBuilder[A[_]]

This trait builds attribute objects which are typically found on the left hand side of the svgAttr := value syntax.

This trait builds attribute objects which are typically found on the left hand side of the svgAttr := value syntax.

Type parameters:
A

SVG Attribute

trait SvgTagBuilder[T[_ <: DomSvgElement], -DomSvgElement]

SvgTagBuilder is a builder of SVG Tags, which themselves are builders of SVG Elements. #factoryfactory

SvgTagBuilder is a builder of SVG Tags, which themselves are builders of SVG Elements. #factoryfactory