kvision / pl.treksoft.kvision.html / Template

Template

(js) interface Template

Handlebars templates helper interface.

Properties

(js)

content

abstract var content: String?
(js)

rich

abstract var rich: Boolean
(js)

template

abstract var template: ((Any?) -> String)?
(js)

templateData

Handlebars template data object.

open var templateData: Any?
(js)

templates

abstract var templates: Map<String, (Any?) -> String>

Extension Functions

(js)

setData

Extension function to set serializable object as a template data.

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

Inheritors

(js)

Tag

HTML tag component.

open class Tag : SimplePanel, Template