PropBinding

org.getshaka.shaka.PropBinding
class PropBinding[V](state: State[V], builder: () ?=> V) extends Binding[V]

Light-weight Binding subclass for binding CSS and JS properties.

Type parameters

V

the state value type

Value parameters

builder

Function binding the props

state

dependent State

Attributes

Graph
Supertypes
trait Binding[V]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def addChildBinding(b: Binding[_]): Unit

Register a child Binding with this Binding

Register a child Binding with this Binding

Attributes

Definition Classes
override def destroy(): Unit

Destorys this Binding and its children. Typically should remove this Binding from any State references to allow garbage collection.

Destorys this Binding and its children. Typically should remove this Binding from any State references to allow garbage collection.

Attributes

Definition Classes
override def onChange(newValue: V): Unit

Typically, triggers a DOM update, and the destruction of child Bindings.

Typically, triggers a DOM update, and the destruction of child Bindings.

Attributes

Definition Classes