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.utils/index.html | 265 ++++++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 api1/pl.treksoft.kvision.utils/index.html (limited to 'api1/pl.treksoft.kvision.utils/index.html') diff --git a/api1/pl.treksoft.kvision.utils/index.html b/api1/pl.treksoft.kvision.utils/index.html new file mode 100644 index 00000000..0a14333f --- /dev/null +++ b/api1/pl.treksoft.kvision.utils/index.html @@ -0,0 +1,265 @@ + + + +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

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

Cache

+
+class Cache<K, V> +

This is a LRU cache that has no performance impact for cache insertions +once the capacity of the cache has been reached. For cache hit, +performance is O(1) and for cache eviction, it is O(1).

+
+

JSON

+
+object JSON +

JSON utility functions

+
+

KvEvent

+
+class KvEvent : CustomEvent +

Helper class for defining custom events.

+
+

LinkedList

+
+class LinkedList<T>
+

Node

+
+class Node<T> +

Created by gazollajunior on 07/04/16.

+
+

Object

+
+external class Object +

JavaScript Object type

+
+

ObservableList

+
+interface ObservableList<T> : MutableList<T> +

Observable list interface.

+
+

ObservableListWrapper

+
+class ObservableListWrapper<T> : MutableList<T>, ObservableList<T> +

Simple observable list implementation.

+
+

Extensions for External Classes

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

kotlin.Any

+
+
+

kotlin.collections.MutableList

+
+
+

kotlin.Int

+
+
+

kotlin.Number

+
+
+

kotlin.Pair

+
+
+

org.w3c.files.File

+
+
+

Properties

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

auto

+
+val auto: CssSize +

Helper property to describe CSS auto value.

+
+

ENTER_KEY

+
+const val ENTER_KEY: Int +

Keycode of the ENTER key.

+
+

ESC_KEY

+
+const val ESC_KEY: Int +

Keycode of the ESC key.

+
+

normal

+
+val normal: CssSize +

Helper property to describe CSS normal value.

+
+

Functions

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

getDataWithFileContent

+
+suspend fun <K : Any> Form<K>.getDataWithFileContent(): K
+suspend fun <K : Any> FormPanel<K>.getDataWithFileContent(): K +

Returns current data model with file content read for all KFiles controls.

+
+

isIE11

+
+fun isIE11(): Boolean +

Utility function to detect Internet Explorer 11.

+
+

obj

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

Helper function for creating JavaScript objects.

+
+

observableListOf

+
+fun <T> observableListOf(vararg items: T): ObservableListWrapper<T> +

Creates an instance of ObservableList

+
+

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