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 --- .../-select-remote-input/-init-.html | 4 +- .../-select-remote-input/index.html | 889 +++++++-------------- .../-select-remote-input/refresh-state.html | 3 +- 3 files changed, 308 insertions(+), 588 deletions(-) (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 119124cf..112839c7 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(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?, String?) -> List<<ERROR CLASS>>, stateFunction: (() -> String)? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, preload: Boolean = false, classes: Set<String> = setOf()) +(js) +SelectRemoteInput(serviceManager: KVServiceManager<T>, function: suspend T.(String?, String?, String?) -> List<RemoteOption>, stateFunction: (() -> String)? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, preload: Boolean = false, classes: Set<String> = setOf())

Parameters

value - selected value

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 f52caa7b..a6229aea 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 @@ -8,175 +8,18 @@ kvision / pl.treksoft.kvision.form.select / SelectRemoteInput

SelectRemoteInput

-open class SelectRemoteInput<T : Any> : SelectInput +(js) open class SelectRemoteInput<T : Any> : SelectInput

The Select control connected to the multiplatform service.

Constructors

- - -
-

<init>

+(js) +

<init>

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

Inherited Properties

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

ajaxOptions

-
-var ajaxOptions: AjaxOptions? -

Additional options for remote (AJAX) data source.

-
-

autofocus

-
-var autofocus: Boolean? -

Determines if the select is automatically focused.

-
-

disabled

-
-open var disabled: Boolean -

Determines if the field is disabled.

-
-

dropdownAlign

-
-var dropdownAlign: SelectDropdownAlign -

The dropdown align of the select control.

-
-

emptyOption

-
-var emptyOption: Boolean -

Determines if an empty option is automatically generated.

-
-

liveSearch

-
-var liveSearch: Boolean -

Determines if live search is available.

-
-

maxOptions

-
-var maxOptions: Int? -

Maximal number of selected options.

-
-

multiple

-
-var multiple: Boolean -

Determines if multiple value selection is allowed.

-
-

name

-
-open var name: String? -

The name attribute of the generated HTML select element.

-
-

options

-
-var options: List<StringPair>? -

A list of options (value to label pairs) for the select control.

-
-

placeholder

-
-var placeholder: String? -

The placeholder for the select control.

-
-

selectWidth

-
-var selectWidth: CssSize? -

The width of the select control.

-
-

selectWidthType

-
-var selectWidthType: SelectWidthType? -

The width type of the select control.

-
-

size

-
-open var size: InputSize? -

The size of the input.

-
-

style

-
-var style: ButtonStyle? -

The style of the select control.

-
-

validationStatus

-
-open var validationStatus: ValidationStatus? -

The validation status of the input.

-
-

value

-
-var value: String? -

A value of the selected option.

-
@@ -185,165 +28,40 @@ -

refreshState

+(js) +

refreshState

open fun refreshState(): Unit -

Inherited Functions

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-

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.

-
-

afterInsert

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

Method called after inserting Snabbdom vnode into the DOM.

-
-

blur

-
-open fun blur(): Unit -

Makes the input element blur.

-
-

focus

-
-open fun focus(): Unit -

Makes the input element focused.

-
-

getSnAttrs

-
-open fun getSnAttrs(): List<StringPair> -

Returns list of element attributes in the form of a List.

-
-

getSnClass

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

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

-
-

hideOptions

-
-open fun hideOptions(): Unit -

Hides dropdown with options.

-
-

refreshSelectInput

-
-fun refreshSelectInput(): Unit
-

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.

-
-

render

-
-open fun render(): VNode -

Renders current component as a Snabbdom vnode.

-
-

showOptions

-
-open fun showOptions(): Unit -

Opens dropdown with options.

-
-

toggleOptions

-
-open fun toggleOptions(): Unit -

Toggles visibility of dropdown with options.

-

Extension Properties

+val <T : Widget> T.changeFlow: Flow<T> +val <T : Widget> T.clickFlow: Flow<T> +val <T : Widget> T.inputFlow: Flow<T>
-

changeFlow

+(js) +

changeFlow

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

clickFlow

+(js) +

clickFlow

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

inputFlow

+(js) +

inputFlow

-val <T : Widget> T.inputFlow: <ERROR CLASS><T>
@@ -352,885 +70,888 @@ -

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