HtmlBuilders
trait HtmlBuilders extends HtmlAttrBuilder[[V] =>> ReactiveHtmlAttr[V]] with ReflectedHtmlAttrBuilder[[V, DomV] =>> ReactiveProp[V, DomV]] with PropBuilder[[V, DomV] =>> ReactiveProp[V, DomV]] with EventPropBuilder[[Ev <: Event] =>> ReactiveEventProp[Ev], Event] with StyleBuilders[StyleSetter] with HtmlTagBuilder[[Ref <: Element] =>> HtmlTag[Ref], Element]
trait StyleBuilders[StyleSetter]
trait PropBuilder[[V, DomV] =>> ReactiveProp[V, DomV]]
trait ReflectedHtmlAttrBuilder[[V, DomV] =>> ReactiveProp[V, DomV]]
trait HtmlAttrBuilder[[V] =>> ReactiveHtmlAttr[V]]
class Object
trait Matchable
class Any
Value members
Concrete methods
@inline
Create custom event property
Create custom event property
- Type Params
- Ev
- event type in JS, e.g. js.dom.MouseEvent
- Value Params
- key
- event type in JS, e.g. "click"
@inline
Create custom HTML attr (Note: for SVG attrs, use L.svg.customSvgAttr)
Create custom HTML attr (Note: for SVG attrs, use L.svg.customSvgAttr)
- Type Params
- V
- value type for this attr in Scala
- Value Params
- codec
- used to translate V <-> String, e.g. StringAsIsCodec,
- key
- name of the attribute, e.g. "value"
@inline
Note: this simply creates an instance of HtmlTag.
Note: this simply creates an instance of HtmlTag.
- This does not create the element (to do that, call .apply on the returned tag instance)
- This does not register this tag name as a custom element
- See https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements
- Type Params
- Ref
- type of elements with this tag, e.g. dom.html.Input for "input" tag
- Value Params
- tagName
- e.g. "div" or "mwc-input"
@inline
Create custom HTML element property
Create custom HTML element property
- Type Params
- DomV
- value type for this prop in the underlying JS DOM.
- V
- value type for this prop in Scala
- Value Params
- codec
- used to translate V <-> DomV, e.g. StringAsIsCodec,
- key
- name of the prop in JS, e.g. "value"
@inline
Create custom CSS property
Create custom CSS property
- Type Params
- V
- type of values recognized by JS for this property, e.g. Int Note: String is always allowed regardless of the type you put here. If unsure, use String type as V.
- Value Params
- key
- name of CSS property, e.g. "font-weight"
override protected def reflectedAttr[V, DomPropV](attrKey: String, propKey: String, attrCodec: Codec[V, String], propCodec: Codec[V, DomPropV]): ReactiveProp[V, DomPropV]
- Definition Classes
- ReflectedHtmlAttrBuilder
Inherited methods
@inline
protected def booleanReflectedAttr(key: String, attrCodec: Codec[Boolean, String]): ReactiveProp[Boolean, Boolean]
- Inherited from
- ReflectedHtmlAttrBuilder
@inline
protected def booleanReflectedAttr(attrKey: String, propKey: String, attrCodec: Codec[Boolean, String]): ReactiveProp[Boolean, Boolean]
- Inherited from
- ReflectedHtmlAttrBuilder