JsProperty

kreuzberg.RuntimeState.JsProperty
case class JsProperty[D <: Element, S](componentId: Identifier, getter: D => S, setter: (D, S) => Unit) extends JsRuntimeStateBase[D, S], RuntimeProperty[S]

Encapsulates a read/writable property.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait RuntimeProperty[S]
trait JsRuntimeStateBase[D, S]
trait RuntimeState[S]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def set(value: S): Unit

Sets the value.

Sets the value.

Attributes

Definition Classes

Inherited methods

protected def getElement(): D

Attributes

Inherited from:
JsRuntimeStateBase
def map[S2](f: S => S2): RuntimeState[S2]

Attributes

Inherited from:
RuntimeState
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
override def read(): S

Read the state from Handler

Read the state from Handler

Attributes

Definition Classes
Inherited from:
JsRuntimeStateBase
def xmap[U](mapFn: S => U, contraMapFn: U => S): RuntimeProperty[U]

Maps and Contra Maps the value.

Maps and Contra Maps the value.

Attributes

Inherited from:
RuntimeProperty