From eb930482e9972a21d39f2aea8b813acf58ff5b64 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 22 Oct 2018 00:01:39 +0200 Subject: API documentation for KVision 0.0.19 --- api/pl.treksoft.kvision.utils/index.html | 185 +++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 api/pl.treksoft.kvision.utils/index.html (limited to 'api/pl.treksoft.kvision.utils/index.html') diff --git a/api/pl.treksoft.kvision.utils/index.html b/api/pl.treksoft.kvision.utils/index.html new file mode 100644 index 00000000..407d8a11 --- /dev/null +++ b/api/pl.treksoft.kvision.utils/index.html @@ -0,0 +1,185 @@ + + + +pl.treksoft.kvision.utils - kvision + + + +kvision / pl.treksoft.kvision.utils
+
+

Package pl.treksoft.kvision.utils

+

Interfaces and helper functions for Snabbdom virtual dom implementation and a few useful extension functions.

+

Types

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

JSON

+
+object JSON
+

KvEvent

+
+class KvEvent : CustomEvent +

Helper class for defining custom events.

+
+

Object

+
+external class Object +

JavaScript Object type

+
+

Extensions for External Classes

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

com.lightningkite.kotlin.observable.list.ObservableList

+
+
+

kotlin.Int

+
+
+

kotlin.Pair

+
+
+

org.w3c.files.File

+
+
+

Properties

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

ENTER_KEY

+
+const val ENTER_KEY: Int +

Keycode of the ENTER key.

+
+

ESC_KEY

+
+const val ESC_KEY: Int +

Keycode of the ESC key.

+
+

auto

+
+val auto: CssSize +

Helper property to describe CSS auto value.

+
+

normal

+
+val normal: CssSize +

Helper property to describe CSS normal value.

+
+

Functions

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

isIE11

+
+fun isIE11(): Boolean +

Utility function to detect Internet Explorer 11.

+
+

obj

+
+fun obj(init: dynamic.() -> Unit): dynamic +

Helper function for creating JavaScript objects.

+
+

snAttrs

+
+fun snAttrs(pairs: List<StringPair>): Attrs +

Helper function for creating attributes parameters for Snabbdom.

+
+

snClasses

+
+fun snClasses(pairs: List<StringBoolPair>): Classes +

Helper function for creating classes parameters for Snabbdom.

+
+

snOpt

+
+fun snOpt(block: VNodeData.() -> Unit): VNodeData +

Helper function for creating object parameters for Snabbdom.

+
+

snProps

+
+fun snProps(pairs: List<StringPair>): Props +

Helper function for creating properties parameters for Snabbdom.

+
+

snStyle

+
+fun snStyle(pairs: List<StringPair>): VNodeStyle +

Helper function for creating style parameters for Snabbdom.

+
+ + -- cgit