From 9d35bb1e3d8186228cc409faa6d681624f20e9cd Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Tue, 26 Nov 2019 19:53:45 +0100 Subject: API documentation for KVision 2.4.0 --- api/pl.treksoft.kvision.modal/-alert/-init-.html | 6 ++++-- api/pl.treksoft.kvision.modal/-alert/index.html | 22 +++++++++++++++++++--- api/pl.treksoft.kvision.modal/-alert/show.html | 8 +++++--- 3 files changed, 28 insertions(+), 8 deletions(-) (limited to 'api/pl.treksoft.kvision.modal/-alert') diff --git a/api/pl.treksoft.kvision.modal/-alert/-init-.html b/api/pl.treksoft.kvision.modal/-alert/-init-.html index feb24c49..896da509 100644 --- a/api/pl.treksoft.kvision.modal/-alert/-init-.html +++ b/api/pl.treksoft.kvision.modal/-alert/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.modal / Alert / <init>

<init>

- -Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: (() -> Unit)? = null) + +Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, callback: (() -> Unit)? = null)

Parameters

caption - window title

@@ -23,6 +23,8 @@ size - modal window size

animation - determines if animations are used

+

+centered - determines if modal dialog is vertically centered

callback - a function called after closing window with OK button

Constructor
diff --git a/api/pl.treksoft.kvision.modal/-alert/index.html b/api/pl.treksoft.kvision.modal/-alert/index.html index f7aaf4fc..1d5758f6 100644 --- a/api/pl.treksoft.kvision.modal/-alert/index.html +++ b/api/pl.treksoft.kvision.modal/-alert/index.html @@ -18,7 +18,7 @@

<init>

-Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: (() -> Unit)? = null) +Alert(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, callback: (() -> Unit)? = null) @@ -77,6 +77,15 @@ +

centered

+ + +var centered: Boolean +

Determines if modal dialog is vertically centered.

+ + + +

closeButton

@@ -242,7 +251,7 @@

show

-fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: (() -> Unit)? = null): Unit +fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, callback: (() -> Unit)? = null): Unit

Helper function for opening Alert window.

@@ -596,6 +605,13 @@ +

onEvent

+ + +fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget + + +

p

@@ -910,7 +926,7 @@

tabulatorRemote

-fun <T : Any, E : Any> Container.tabulatorRemote(serviceManager: KVServiceManager<E>, function: suspend E.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?) -> <ERROR CLASS><T>, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (TabulatorRemote<T, E>.() -> Unit)? = null): TabulatorRemote<T, E> +fun <T : Any, E : Any> Container.tabulatorRemote(serviceManager: KVServiceManager<E>, function: suspend E.(Int?, Int?, List<<ERROR CLASS>>?, List<<ERROR CLASS>>?, String?) -> <ERROR CLASS><T>, stateFunction: (() -> String)? = null, options: TabulatorOptions<T> = TabulatorOptions(), types: Set<TableType> = setOf(), classes: Set<String> = setOf(), init: (TabulatorRemote<T, E>.() -> Unit)? = null): TabulatorRemote<T, E>

DSL builder extension function.

diff --git a/api/pl.treksoft.kvision.modal/-alert/show.html b/api/pl.treksoft.kvision.modal/-alert/show.html index 71d10bc4..1c21cc29 100644 --- a/api/pl.treksoft.kvision.modal/-alert/show.html +++ b/api/pl.treksoft.kvision.modal/-alert/show.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.modal / Alert / show

show

- -fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, callback: (() -> Unit)? = null): Unit + +fun show(caption: String? = null, text: String? = null, rich: Boolean = false, align: Align? = null, size: ModalSize? = null, animation: Boolean = true, centered: Boolean = false, callback: (() -> Unit)? = null): Unit

Helper function for opening Alert window.

Parameters

@@ -17,13 +17,15 @@

text - window content text.

-rich - determines if text can contain HTML code

+rich - determines if text can contain HTML code

align - text align

size - modal window size

animation - determines if animations are used

+

+centered - determines if modal dialog is vertically centered

callback - a function called after closing window with OK button

-- cgit