com.raquo.laminar.keys

Type members

Classlikes

class CompositeKey[Key, -El <: Base](val key: Key, val getDomValue: El => List[String], val setDomValue: (El, List[String]) => Unit, val separator: String)
Companion
object
object CompositeKey
Companion
class
class EventProcessor[Ev <: Event, V](val eventProp: ReactiveEventProp[Ev], val shouldUseCapture: Boolean, val processor: Ev => Option[V])

This class represents a sequence of transformations that are applied to events feeding into an EventListener EventProcessor-s are immutable, so can be reused by multiple setters.

This class represents a sequence of transformations that are applied to events feeding into an EventListener EventProcessor-s are immutable, so can be reused by multiple setters.

Example syntax: input(onChange().preventDefault.mapTo(true) --> myBooleanWriteBus)

Note: Params are protected to avoid confusing autocomplete options (e.g. "useCapture")

Value Params
processor

Processes incoming events before they're passed to the next processor or to the listening EventBus. Returns an Option of the processed value. If None, the value should not passed down the chain.

shouldUseCapture

(false means using bubble mode) See useCapture docs here: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener

Companion
object
Companion
class
class LockedCompositeKey[Key, -El <: Base](val key: CompositeKey[Key, El], val items: List[String])

Laminar key specific to a particular set of CompositeAttr values

Laminar key specific to a particular set of CompositeAttr values

class LockedEventKey[Ev <: Event, In, Out](eventProcessor: EventProcessor[Ev, In], composer: EventStream[In] => Observable[Out])
class ReactiveEventProp[Ev <: Event](val name: String) extends EventProp[Ev]

ReactiveEventProp is implicitly converted to EventProcessor. See all the useful methods there.

ReactiveEventProp is implicitly converted to EventProcessor. See all the useful methods there.

class ReactiveHtmlAttr[V](val name: String, val codec: Codec[V, String]) extends HtmlAttr[V]
class ReactiveProp[V, DomV](val name: String, val codec: Codec[V, DomV]) extends Prop[V, DomV]
final class ReactiveStyle[V](val style: Style[V]) extends AnyVal

Note: Unlike other reactive keys, this has to be a wrapping value class because Scala DOM Types instantiates its own Style objects. It is a known deficiency in its API, see https://github.com/raquo/scala-dom-types/issues/2

Note: Unlike other reactive keys, this has to be a wrapping value class because Scala DOM Types instantiates its own Style objects. It is a known deficiency in its API, see https://github.com/raquo/scala-dom-types/issues/2

class ReactiveSvgAttr[V](val name: String, val codec: Codec[V, String], val namespace: Option[String]) extends SvgAttr[V]