OpenState

class OpenState[V](initialValue: V) extends State[V]

Open state that must be encapsulated.

Type parameters:
V

the value.

Value parameters:
initialValue

The State's initial value, discarded if the StorageManager can fetch a value.

class State[V]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def setValue(newValue: V): Unit
Definition Classes
override def setValue(oldToNew: V => V): Unit
Definition Classes
override def value: V
Definition Classes

Inherited methods

def bind(builder: () => V)(using pe: Element, pb: Binding[_]): Unit

Construct a Binding for DOM Nodes

Construct a Binding for DOM Nodes

Inherited from:
State
def bindProps(builder: () => V)(using pb: Binding[_]): Unit

Construct a lighter-weight Binding for CSS/JS Props.

Construct a lighter-weight Binding for CSS/JS Props.

Inherited from:
State
def removeBinding(b: Binding[V]): Unit

Removes a Binding from this State.

Removes a Binding from this State.

Inherited from:
State