From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- api/pl.treksoft.kvision.modal/-alert/-init-.html | 2 +- api/pl.treksoft.kvision.modal/-alert/align.html | 2 +- api/pl.treksoft.kvision.modal/-alert/hide.html | 3 +- api/pl.treksoft.kvision.modal/-alert/index.html | 790 +++++++++-------------- api/pl.treksoft.kvision.modal/-alert/rich.html | 2 +- api/pl.treksoft.kvision.modal/-alert/show.html | 2 +- api/pl.treksoft.kvision.modal/-alert/text.html | 2 +- 7 files changed, 317 insertions(+), 486 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 896da509..b5d0c6d9 100644 --- a/api/pl.treksoft.kvision.modal/-alert/-init-.html +++ b/api/pl.treksoft.kvision.modal/-alert/-init-.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.modal / Alert / <init>

<init>

- +(js) 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

diff --git a/api/pl.treksoft.kvision.modal/-alert/align.html b/api/pl.treksoft.kvision.modal/-alert/align.html index e3d0bf4d..4b4e8c30 100644 --- a/api/pl.treksoft.kvision.modal/-alert/align.html +++ b/api/pl.treksoft.kvision.modal/-alert/align.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.modal / Alert / align

align

- +(js) var align: Align?

Text align.

diff --git a/api/pl.treksoft.kvision.modal/-alert/hide.html b/api/pl.treksoft.kvision.modal/-alert/hide.html index f165c34f..1b2bcd72 100644 --- a/api/pl.treksoft.kvision.modal/-alert/hide.html +++ b/api/pl.treksoft.kvision.modal/-alert/hide.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.modal / Alert / hide

hide

- +(js) open fun hide(): Widget -

Overrides Modal.hide

Makes current widget invisible.

Return
current widget

diff --git a/api/pl.treksoft.kvision.modal/-alert/index.html b/api/pl.treksoft.kvision.modal/-alert/index.html index 82145605..d99b1e29 100644 --- a/api/pl.treksoft.kvision.modal/-alert/index.html +++ b/api/pl.treksoft.kvision.modal/-alert/index.html @@ -8,14 +8,15 @@ kvision / pl.treksoft.kvision.modal / Alert

Alert

-open class Alert : Modal +(js) open class Alert : Modal

Alert window based on Bootstrap modal.

Constructors

@@ -27,87 +28,30 @@ +var align: Align? +var rich: Boolean - - -
-

<init>

+(js) +

<init>

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)
-

align

+(js) +

align

-var align: Align?

Text align.

-
-

rich

+(js) +

rich

-var rich: Boolean

Determines if text can contain HTML code.

-
-

text

+(js) +

text

-var text: String?

Window content text.

-
-

Inherited Properties

- - - - - - - - - - - - - - - - - - - - - - - - - +var text: String?
-

animation

-
-var animation: Boolean -

Determines if animations are used.

-
-

caption

-
-var caption: String? -

Window caption text.

-
-

centered

-
-var centered: Boolean -

Determines if modal dialog is vertically centered.

-
-

closeButton

-
-var closeButton: Boolean -

Determines if Close button is visible.

-
-

parent

-
-open var parent: Container?
-

size

-
-var size: ModalSize? -

Window size.

-
@@ -116,130 +60,12 @@ -

hide

+(js) +

hide

-open fun hide(): Widget

Makes current widget invisible.

- - - - -

Inherited Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +open fun hide(): Widget
-

add

-
-open fun add(child: Component): SimplePanel -

Adds given component to the current container.

-
-

addAll

-
-open fun addAll(children: List<Component>): SimplePanel -

Adds a list of components to the current container.

-
-

addButton

-
-open fun addButton(button: Button): Modal -

Adds given button to the bottom section of dialog window.

-
-

afterInsert

-
-open fun afterInsert(node: VNode): Unit -

Method called after inserting Snabbdom vnode into the DOM.

-
-

clearParent

-
-open fun clearParent(): Widget
-

getChildren

-
-open fun getChildren(): List<Component> -

Returns a list of children of the current container.

-
-

getRoot

-
-open fun getRoot(): Root?
-

getSnClass

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

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

-
-

remove

-
-open fun remove(child: Component): SimplePanel -

Removes given component from the current container.

-
-

removeAll

-
-open fun removeAll(): SimplePanel -

Removes all children from the current container.

-
-

removeAllButtons

-
-open fun removeAllButtons(): Modal -

Removes all buttons from the bottom section of dialog window.

-
-

removeButton

-
-open fun removeButton(button: Button): Modal -

Removes given button from the bottom section of dialog window.

-
-

toggle

-
-open fun toggle(): Unit -

Toggle modal window visibility.

-
@@ -248,12 +74,12 @@ -

show

+(js) +

show

-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 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 @@ -262,24 +88,27 @@ -

changeFlow

+(js) +

changeFlow

-val <T : Widget> T.changeFlow: <ERROR CLASS><T> +val <T : Widget> T.changeFlow: Flow<T> -

clickFlow

+(js) +

clickFlow

-val <T : Widget> T.clickFlow: <ERROR CLASS><T> +val <T : Widget> T.clickFlow: Flow<T> -

inputFlow

+(js) +

inputFlow

-val <T : Widget> T.inputFlow: <ERROR CLASS><T> +val <T : Widget> T.inputFlow: Flow<T> @@ -288,867 +117,870 @@ -

addBsBgColor

+(js) +

addBsBgColor

fun Component.addBsBgColor(bsBgColor: BsBgColor): Unit -

addBsBorder

+(js) +

addBsBorder

fun Component.addBsBorder(vararg bsBorder: BsBorder): Unit -

addBsClearfix

+(js) +

addBsClearfix

fun Component.addBsClearfix(): Unit -

addBsColor

+(js) +

addBsColor

fun Component.addBsColor(bsColor: BsColor): Unit -

addBsRounded

+(js) +

addBsRounded

fun Component.addBsRounded(vararg bsRounded: BsRounded): Unit -

bold

+(js) +

bold

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

DSL builder extension function.

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

button

+(js) +

button

-fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button

DSL builder extension function.

- +fun Container.button(text: String, icon: String? = null, style: ButtonStyle = ButtonStyle.PRIMARY, type: ButtonType = ButtonType.BUTTON, disabled: Boolean = false, classes: Set<String> = setOf(), init: (Button.() -> Unit)? = null): Button -

buttonGroup

+(js) +

buttonGroup

-fun Container.buttonGroup(size: ButtonGroupSize? = null, vertical: Boolean = false, classes: Set<String> = setOf(),