NodeBinding

org.getshaka.shaka.NodeBinding
See theNodeBinding companion object
class NodeBinding[V](state: State[V], parentElement: Element, builder: () ?=> V) extends Binding[V]

Binding subclass specialized for Nodes

Type parameters

V

bound value type

Value parameters

builder

Function to create the DOM

parentElement

Element to append to

state

State this Binding is bound to

Attributes

Companion
object
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