From 9d35bb1e3d8186228cc409faa6d681624f20e9cd Mon Sep 17 00:00:00 2001
From: Robert Jaros
<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
@@ -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 @@
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 @@
var centered: Boolean
+Determines if modal dialog is vertically centered.
+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.
fun <T : Widget> T.onEvent(block: SnOn<T>.() -> Unit): Widget
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.
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.
-rich
- determines if text can contain HTML code
rich
- determines if text can contain HTML code
animation
- determines if animations are used
+centered
- determines if modal dialog is vertically centered
callback
- a function called after closing window with OK button