From 8883419bfcec00947863741d48dbd89cc877615a Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 4 Apr 2019 13:10:28 +0200 Subject: API documentation for KVision 0.0.32 --- api/pl.treksoft.kvision.html/-span/-init-.html | 27 ++++ api/pl.treksoft.kvision.html/-span/index.html | 167 +++++++++++++++++++++++++ api/pl.treksoft.kvision.html/-span/span.html | 16 +++ 3 files changed, 210 insertions(+) create mode 100644 api/pl.treksoft.kvision.html/-span/-init-.html create mode 100644 api/pl.treksoft.kvision.html/-span/index.html create mode 100644 api/pl.treksoft.kvision.html/-span/span.html (limited to 'api/pl.treksoft.kvision.html/-span') diff --git a/api/pl.treksoft.kvision.html/-span/-init-.html b/api/pl.treksoft.kvision.html/-span/-init-.html new file mode 100644 index 00000000..0678a6d6 --- /dev/null +++ b/api/pl.treksoft.kvision.html/-span/-init-.html @@ -0,0 +1,27 @@ + + + +Span.<init> - kvision + + + +kvision / pl.treksoft.kvision.html / Span / <init>
+
+

<init>

+ +Span(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Span.() -> Unit = null) +

Parameters

+

+content - element text

+

+rich - determines if content can contain HTML code

+

+align - content align

+

+classes - a set of CSS class names

+

+init - an initializer extension function

+

Constructor
+

+ + diff --git a/api/pl.treksoft.kvision.html/-span/index.html b/api/pl.treksoft.kvision.html/-span/index.html new file mode 100644 index 00000000..f051cf8f --- /dev/null +++ b/api/pl.treksoft.kvision.html/-span/index.html @@ -0,0 +1,167 @@ + + + +Span - kvision + + + +kvision / pl.treksoft.kvision.html / Span
+
+

Span

+open class Span : Tag +

Simple component rendered as span.

+

Constructors

+ + + + + + + +
+

<init>

+
+Span(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Span.() -> Unit = null)
+

Inherited Properties

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

align

+
+var align: Align? +

Text align.

+
+

content

+
+open var content: String? +

Text content of the tag.

+
+

rich

+
+open var rich: Boolean +

Determines if content can contain HTML code.

+
+

template

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

Handlebars template.

+
+

templates

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

Handlebars templates for i18n.

+
+

type

+
+var type: TAG +

Tag type.

+
+

Inherited Functions

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

getSnClass

+
+open fun getSnClass(): List<StringBoolPair> +

Returns list of CSS class names for current widget in the form of a List.

+
+

render

+
+open fun render(): VNode +

Renders current component as a Snabbdom vnode.

+
+

unaryPlus

+
+operator fun String.unaryPlus(): Unit
+

Companion Object Functions

+ + + + + + + +
+

span

+
+fun Container.span(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Span.() -> Unit = null): Span +

DSL builder extension function.

+
+

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

+ + + + + + + +
+

Label

+
+open class Label : Span +

Simple label component rendered as span.

+
+ + diff --git a/api/pl.treksoft.kvision.html/-span/span.html b/api/pl.treksoft.kvision.html/-span/span.html new file mode 100644 index 00000000..88167d4a --- /dev/null +++ b/api/pl.treksoft.kvision.html/-span/span.html @@ -0,0 +1,16 @@ + + + +Span.span - kvision + + + +kvision / pl.treksoft.kvision.html / Span / span
+
+

span

+ +fun Container.span(content: String? = null, rich: Boolean = false, align: Align? = null, classes: Set<String> = setOf(), init: Span.() -> Unit = null): Span +

DSL builder extension function.

+

It takes the same parameters as the constructor of the built component.

+ + -- cgit