KeyUpdater

com.raquo.laminar.modifiers.KeyUpdater
See theKeyUpdater companion object
class KeyUpdater[-El <: Base, +K <: Key, V](val key: K, val values: Observable[V], val update: (El, V, Any) => Unit) extends Binder[El]

A modifier that updates a key from a source, e.g. value <-- valueStream

Value parameters

update

(element, newValue, reason) => () The reason is used for updating CompositeKey-s.

Attributes

Companion
object
Graph
Supertypes
trait Binder[El]
trait Modifier[El]
class Object
trait Matchable
class Any
Self type
KeyUpdater[El, K, V]

Members list

Value members

Concrete methods

override def bind(element: El): DynamicSubscription

This method is used by onMountBind to cancel this subscription on unmount

This method is used by onMountBind to cancel this subscription on unmount

Attributes

Definition Classes

Inherited methods

final override def apply(element: El): Unit

You can count on this method being a no-op in your libraries and end user code.

You can count on this method being a no-op in your libraries and end user code.

The reason this method is not abstract is to avoid broken SAM sugar in case of meta modifiers. See https://github.com/raquo/scala-dom-types/issues/27

Attributes

Definition Classes
Inherited from:
Binder

Concrete fields

val key: K
val update: (El, V, Any) => Unit
val values: Observable[V]