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 --- .../-select-remote-input/-init-.html | 6 +- .../-select-remote-input/index.html | 802 ++++++++++++++++++++- .../-select-remote-input/select-remote-input.html | 16 - 3 files changed, 797 insertions(+), 27 deletions(-) delete mode 100644 api/pl.treksoft.kvision.form.select/-select-remote-input/select-remote-input.html (limited to 'api/pl.treksoft.kvision.form.select/-select-remote-input') diff --git a/api/pl.treksoft.kvision.form.select/-select-remote-input/-init-.html b/api/pl.treksoft.kvision.form.select/-select-remote-input/-init-.html index 9e3b7665..66cc0c67 100644 --- a/api/pl.treksoft.kvision.form.select/-select-remote-input/-init-.html +++ b/api/pl.treksoft.kvision.form.select/-select-remote-input/-init-.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectRemoteInput / <init>

<init>

- -SelectRemoteInput(value: String? = null, serviceManager: KVServiceManager<T>, function: T.(String?, String?) -> List<<ERROR CLASS>>, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf()) + +SelectRemoteInput(value: String? = null, serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: (() -> String)? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf())

Parameters

value - selected value

@@ -17,6 +17,8 @@ serviceManager - multiplatform service manager

function - multiplatform service method returning the list of options

+

+stateFunction - a function to generate the state object passed with the remote request

multiple - allows multiple value selection (multiple values are comma delimited)

diff --git a/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html b/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html index 94a50eeb..32dd6f78 100644 --- a/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-remote-input/index.html @@ -18,7 +18,7 @@

<init>

-SelectRemoteInput(value: String? = null, serviceManager: KVServiceManager<T>, function: T.(String?, String?) -> List<<ERROR CLASS>>, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf()) +SelectRemoteInput(value: String? = null, serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: (() -> String)? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf()) @@ -54,6 +54,15 @@ +

dropdownAlign

+ + +var dropdownAlign: SelectDropdownAlign +

The dropdown align of the select control.

+ + + +

emptyOption

@@ -153,6 +162,15 @@ +

validationStatus

+ + +open var validationStatus: ValidationStatus? +

The validation status of the input.

+ + + +

value

@@ -291,23 +309,116 @@ -

Companion Object Functions

+

Extension Functions

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
-

selectRemoteInput

+

addBsBgColor

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

addBsBorder

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

addBsClearfix

+
+fun Component.addBsClearfix(): Unit
+

addBsColor

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

addBsRounded

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

bold

-fun <T : Any> Container.selectRemoteInput(value: String? = null, serviceManager: KVServiceManager<T>, function: T.(String?, String?) -> List<<ERROR CLASS>>, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf(), init: (SelectRemoteInput<T>.() -> Unit)? = null): SelectRemoteInput<T> +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.

+
+

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.

+
+

buttonGroup

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

DSL builder extension function.

+
+

canvas

+
+fun Container.canvas(canvasWidth: Int? = null, canvasHeight: Int? = null, classes: Set<String> = setOf(), init: (Canvas.() -> Unit)? = null): Canvas +

DSL builder extension function.

+
+

chart

+
+fun Container.chart(configuration: Configuration, chartWidth: Int? = null, chartHeight: Int? = null, classes: Set<String> = setOf(), init: (Chart.() -> Unit)? = null): Chart +

DSL builder extension function.

+
+

checkBox

+
+fun Container.checkBox(value: Boolean = false, name: String? = null, label: String? = null, rich: Boolean = false, init: (CheckBox.() -> Unit)? = null): CheckBox +

DSL builder extension function.

+
+

checkBoxInput

+
+fun Container.checkBoxInput(value: Boolean = false, classes: Set<String> = setOf(), init: (CheckInput.() -> Unit