kvision / pl.treksoft.kvision.html / setData

setData

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

Extension function to set serializable object as a template data.