JsRuntimeState

kreuzberg.RuntimeState.JsRuntimeState
case class JsRuntimeState[D <: ScalaJsElement, S](componentId: Identifier, getter: D => S) extends JsRuntimeStateBase[D, S]

Encapsulates a JS DOM runtime state field.

Type parameters

D

DOM Element Type

S

Return type

Value parameters

componentId

component ID

getter

function which fetches the state from DOM element type

Attributes

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

Members list

Value members

Inherited methods

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
def zip[S2](other: RuntimeState[S2]): RuntimeState[(S, S2)]

Attributes

Inherited from:
RuntimeState