kvision / pl.treksoft.kvision.html / setData

setData

(js) fun <K> Template.setData(obj: K, serializer: SerializationStrategy<K>): Unit
fun <reified K : Any> Template.setData(obj: K): Unit

Extension function to set serializable object as a template data.