kvision / pl.treksoft.kvision.state / Updateable

Updateable

class Updateable<S : Any, CONTENT>

A helper class for updateable content.

Constructors

<init>

Updateable(setUpdateState: ((S, CONTENT) -> Unit) -> Unit)

A helper class for updateable content.

Functions

updateWith

infix fun updateWith(updateState: (S, CONTENT) -> Unit): Unit

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.