KeyUpdater

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.

Companion:
object
trait Binder[El]
trait Modifier[El]
class Object
trait Matchable
class Any
KeyUpdater[El, K, V]

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

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

Definition Classes
Inherited from:
Binder

Concrete fields

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