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 --- .../-template/content.html | 14 ++++ api1/pl.treksoft.kvision.html/-template/index.html | 94 ++++++++++++++++++++++ api1/pl.treksoft.kvision.html/-template/rich.html | 14 ++++ .../-template/template-data.html | 15 ++++ .../-template/template.html | 14 ++++ .../-template/templates.html | 14 ++++ 6 files changed, 165 insertions(+) create mode 100644 api1/pl.treksoft.kvision.html/-template/content.html create mode 100644 api1/pl.treksoft.kvision.html/-template/index.html create mode 100644 api1/pl.treksoft.kvision.html/-template/rich.html create mode 100644 api1/pl.treksoft.kvision.html/-template/template-data.html create mode 100644 api1/pl.treksoft.kvision.html/-template/template.html create mode 100644 api1/pl.treksoft.kvision.html/-template/templates.html (limited to 'api1/pl.treksoft.kvision.html/-template') diff --git a/api1/pl.treksoft.kvision.html/-template/content.html b/api1/pl.treksoft.kvision.html/-template/content.html new file mode 100644 index 00000000..0910458f --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-template/content.html @@ -0,0 +1,14 @@ + + + +Template.content - kvision + + + +kvision / pl.treksoft.kvision.html / Template / content
+
+

content

+ +abstract var content: String? + + 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.

+
+ + diff --git a/api1/pl.treksoft.kvision.html/-template/rich.html b/api1/pl.treksoft.kvision.html/-template/rich.html new file mode 100644 index 00000000..66e3bcbd --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-template/rich.html @@ -0,0 +1,14 @@ + + + +Template.rich - kvision + + + +kvision / pl.treksoft.kvision.html / Template / rich
+
+

rich

+ +abstract var rich: Boolean + + diff --git a/api1/pl.treksoft.kvision.html/-template/template-data.html b/api1/pl.treksoft.kvision.html/-template/template-data.html new file mode 100644 index 00000000..4e4f7a9c --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-template/template-data.html @@ -0,0 +1,15 @@ + + + +Template.templateData - kvision + + + +kvision / pl.treksoft.kvision.html / Template / templateData
+
+

templateData

+ +open var templateData: Any? +

Handlebars template data object.

+ + diff --git a/api1/pl.treksoft.kvision.html/-template/template.html b/api1/pl.treksoft.kvision.html/-template/template.html new file mode 100644 index 00000000..d32194af --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-template/template.html @@ -0,0 +1,14 @@ + + + +Template.template - kvision + + + +kvision / pl.treksoft.kvision.html / Template / template
+
+

template

+ +abstract var template: ((Any?) -> String)? + + diff --git a/api1/pl.treksoft.kvision.html/-template/templates.html b/api1/pl.treksoft.kvision.html/-template/templates.html new file mode 100644 index 00000000..8a25f0d0 --- /dev/null +++ b/api1/pl.treksoft.kvision.html/-template/templates.html @@ -0,0 +1,14 @@ + + + +Template.templates - kvision + + + +kvision / pl.treksoft.kvision.html / Template / templates
+
+

templates

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