From fb7ff5b8bf2073a8d7b78011b9edffc830dc63cb Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sat, 26 Oct 2019 00:17:24 +0200 Subject: API documentation for KVision 2.0.0 --- api1/pl.treksoft.kvision.html/-template/index.html | 94 ++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 api1/pl.treksoft.kvision.html/-template/index.html (limited to 'api1/pl.treksoft.kvision.html/-template/index.html') diff --git a/api1/pl.treksoft.kvision.html/-template/index.html b/api1/pl.treksoft.kvision.html/-template/index.html new file mode 100644 index 00000000..4f3fe7a8 --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-template/index.html @@ -0,0 +1,94 @@ + + + +Template - kvision + + + +kvision / pl.treksoft.kvision.html / Template
+
+

Template

+interface Template +

Handlebars templates helper interface.

+

Properties

+ + + + + + + + + + + + + + + + + + + + + + + +
+

content

+
+abstract var content: String?
+

rich

+
+abstract var rich: Boolean
+

template

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

templateData

+
+open var templateData: Any? +

Handlebars template data object.

+
+

templates

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

Extension Functions

+ + + + + + + + + + + +
+

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

+
+

setData

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

Extension function to set serializable object as a template data.

+
+

Inheritors

+ + + + + + + +
+

Tag

+
+open class Tag : SimplePanel, Template +

HTML tag component.

+
+ + -- cgit