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-input/-init-.html | 2 +- .../-select-input/add-all.html | 3 +- .../-select-input/add.html | 3 +- .../-select-input/after-insert.html | 3 +- .../-select-input/ajax-options.html | 2 +- .../-select-input/autofocus.html | 2 +- .../-select-input/blur.html | 3 +- .../-select-input/disabled.html | 3 +- .../-select-input/dropdown-align.html | 2 +- .../-select-input/empty-option.html | 2 +- .../-select-input/focus.html | 3 +- .../-select-input/get-sn-attrs.html | 3 +- .../-select-input/get-sn-class.html | 3 +- .../-select-input/hide-options.html | 2 +- .../-select-input/index.html | 833 ++++++++++----------- .../-select-input/live-search.html | 2 +- .../-select-input/max-options.html | 2 +- .../-select-input/multiple.html | 2 +- .../-select-input/name.html | 3 +- .../-select-input/options.html | 2 +- .../-select-input/placeholder.html | 2 +- .../-select-input/refresh-select-input.html | 2 +- .../-select-input/refresh-state.html | 2 +- .../-select-input/remove-all.html | 3 +- .../-select-input/remove.html | 3 +- .../-select-input/render.html | 3 +- .../-select-input/select-width-type.html | 2 +- .../-select-input/select-width.html | 2 +- .../-select-input/show-options.html | 2 +- .../-select-input/size.html | 3 +- .../-select-input/style.html | 2 +- .../-select-input/toggle-options.html | 2 +- .../-select-input/validation-status.html | 3 +- .../-select-input/value.html | 2 +- 34 files changed, 432 insertions(+), 481 deletions(-) (limited to 'api/pl.treksoft.kvision.form.select/-select-input') diff --git a/api/pl.treksoft.kvision.form.select/-select-input/-init-.html b/api/pl.treksoft.kvision.form.select/-select-input/-init-.html index ec1c6cd0..5b28e9ef 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/-init-.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/-init-.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / <init>

<init>

- +(js) SelectInput(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf())

Parameters

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/add-all.html b/api/pl.treksoft.kvision.form.select/-select-input/add-all.html index 5becd914..09f83f63 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/add-all.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/add-all.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / addAll

addAll

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

Overrides SimplePanel.addAll

Adds a list of components to the current container.

Parameters

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/add.html b/api/pl.treksoft.kvision.form.select/-select-input/add.html index 39171a2a..0bb3c359 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/add.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/add.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / add

add

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

Overrides SimplePanel.add

Adds given component to the current container.

Parameters

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/after-insert.html b/api/pl.treksoft.kvision.form.select/-select-input/after-insert.html index aab8ccb0..19d18b3c 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/after-insert.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/after-insert.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / afterInsert

afterInsert

- +(js) protected open fun afterInsert(node: VNode): Unit -

Overrides Widget.afterInsert

Method called after inserting Snabbdom vnode into the DOM.

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/ajax-options.html b/api/pl.treksoft.kvision.form.select/-select-input/ajax-options.html index b08163f4..acf23fd9 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/ajax-options.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/ajax-options.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / ajaxOptions

ajaxOptions

- +(js) var ajaxOptions: AjaxOptions?

Additional options for remote (AJAX) data source.

Getter
diff --git a/api/pl.treksoft.kvision.form.select/-select-input/autofocus.html b/api/pl.treksoft.kvision.form.select/-select-input/autofocus.html index cf5cb1ba..c3b2f2b2 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/autofocus.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/autofocus.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / autofocus

autofocus

- +(js) var autofocus: Boolean?

Determines if the select is automatically focused.

Getter
diff --git a/api/pl.treksoft.kvision.form.select/-select-input/blur.html b/api/pl.treksoft.kvision.form.select/-select-input/blur.html index ebeefc35..c01de8f1 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/blur.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/blur.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / blur

blur

- +(js) open fun blur(): Unit -

Overrides FormInput.blur

Makes the input element blur.

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/disabled.html b/api/pl.treksoft.kvision.form.select/-select-input/disabled.html index 21a1d754..0ed5db76 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/disabled.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/disabled.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / disabled

disabled

- +(js) open var disabled: Boolean -

Overrides FormInput.disabled

Determines if the field is disabled.

Getter

Determines if the field is disabled.

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/dropdown-align.html b/api/pl.treksoft.kvision.form.select/-select-input/dropdown-align.html index e76e7942..aa3cf85b 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/dropdown-align.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/dropdown-align.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / dropdownAlign

dropdownAlign

- +(js) var dropdownAlign: SelectDropdownAlign

The dropdown align of the select control.

Getter
diff --git a/api/pl.treksoft.kvision.form.select/-select-input/empty-option.html b/api/pl.treksoft.kvision.form.select/-select-input/empty-option.html index 01cb6058..a2117eeb 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/empty-option.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/empty-option.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / emptyOption

emptyOption

- +(js) var emptyOption: Boolean

Determines if an empty option is automatically generated.

Getter
diff --git a/api/pl.treksoft.kvision.form.select/-select-input/focus.html b/api/pl.treksoft.kvision.form.select/-select-input/focus.html index 0c6b801d..ff6422e5 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/focus.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/focus.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / focus

focus

- +(js) open fun focus(): Unit -

Overrides FormInput.focus

Makes the input element focused.

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/get-sn-attrs.html b/api/pl.treksoft.kvision.form.select/-select-input/get-sn-attrs.html index 371b3bd7..2e801610 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/get-sn-attrs.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/get-sn-attrs.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / getSnAttrs

getSnAttrs

- +(js) protected open fun getSnAttrs(): List<StringPair> -

Overrides Widget.getSnAttrs

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

Return
list of element attributes

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/get-sn-class.html b/api/pl.treksoft.kvision.form.select/-select-input/get-sn-class.html index 28b40573..6536d1c4 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/get-sn-class.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/get-sn-class.html @@ -8,9 +8,8 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / getSnClass

getSnClass

- +(js) protected open fun getSnClass(): List<StringBoolPair> -

Overrides Widget.getSnClass

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

Return
list of CSS class names

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/hide-options.html b/api/pl.treksoft.kvision.form.select/-select-input/hide-options.html index d1b371ec..a8cdb3a1 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/hide-options.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/hide-options.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput / hideOptions

hideOptions

- +(js) open fun hideOptions(): Unit

Hides dropdown with options.

diff --git a/api/pl.treksoft.kvision.form.select/-select-input/index.html b/api/pl.treksoft.kvision.form.select/-select-input/index.html index 7f729cb6..ebaaa6bf 100644 --- a/api/pl.treksoft.kvision.form.select/-select-input/index.html +++ b/api/pl.treksoft.kvision.form.select/-select-input/index.html @@ -8,7 +8,7 @@ kvision / pl.treksoft.kvision.form.select / SelectInput

SelectInput

-open class SelectInput : SimplePanel, FormInput +(js) open class SelectInput : SimplePanel, FormInput

The basic component for Select control.

The select control can be populated directly from options parameter or manually by adding SelectOption or SelectOptGroup components to the container.

@@ -17,7 +17,8 @@ -

<init>

+(js) +

<init>

SelectInput(options: List<StringPair>? = null, value: String? = null, multiple: Boolean = false, ajaxOptions: AjaxOptions? = null, classes: Set<String> = setOf()) @@ -29,168 +30,156 @@ -

ajaxOptions

+(js) +

ajaxOptions

-var ajaxOptions: AjaxOptions?

Additional options for remote (AJAX) data source.

- +var ajaxOptions: AjaxOptions? -

autofocus

+(js) +

autofocus

-var autofocus: Boolean?

Determines if the select is automatically focused.

- +var autofocus: Boolean? -

disabled

+(js) +

disabled

-open var disabled: Boolean

Determines if the field is disabled.

- +open var disabled: Boolean -

dropdownAlign

+(js) +

dropdownAlign

-var dropdownAlign: SelectDropdownAlign

The dropdown align of the select control.

- +var dropdownAlign: SelectDropdownAlign -

emptyOption

+(js) +

emptyOption

-var emptyOption: Boolean

Determines if an empty option is automatically generated.

- +var emptyOption: Boolean -

liveSearch

+(js) +

liveSearch

-var liveSearch: Boolean

Determines if live search is available.

- +var liveSearch: Boolean -

maxOptions

+(js) +

maxOptions

-var maxOptions: Int?

Maximal number of selected options.

- +var maxOptions: Int? -

multiple

+(js) +

multiple

-var multiple: Boolean

Determines if multiple value selection is allowed.

- +var multiple: Boolean -

name

+(js) +

name

-open var name: String?

The name attribute of the generated HTML select element.

- +open var name: String? -

options

+(js) +

options

-var options: List<StringPair>?

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

- +var options: List<StringPair>? -

placeholder

+(js) +

placeholder

-var placeholder: String?

The placeholder for the select control.

- +var placeholder: String? -

selectWidth

+(js) +

selectWidth

-var selectWidth: CssSize?

The width of the select control.

- +var selectWidth: CssSize? -

selectWidthType

+(js) +

selectWidthType

-var selectWidthType: SelectWidthType?

The width type of the select control.

- +var selectWidthType: SelectWidthType? -

size

+(js) +

size

-open var size: InputSize?

The size of the input.

- +open var size: InputSize? -

style

+(js) +

style

-var style: ButtonStyle?

The style of the select control.

- +var style: ButtonStyle? -

validationStatus

+(js) +

validationStatus

-open var validationStatus: ValidationStatus?

The validation status of the input.

- +open var validationStatus: ValidationStatus? -

value

+(js) +

value

-var value: String?

A value of the selected option.

- - - - -

Inherited Properties

- - - - - +var value: String?
-

children

-
-val children: MutableList<Component>
@@ -199,166 +188,136 @@ -

add

+(js) +

add

-open fun add(child: Component): SimplePanel

Adds given component to the current container.

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

addAll

+(js) +

addAll

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

Adds a list of components to the current container.

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

afterInsert

+(js) +

afterInsert

-open fun afterInsert(node: VNode): Unit

Method called after inserting Snabbdom vnode into the DOM.

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

blur

+(js) +

blur

-open fun blur(): Unit

Makes the input element blur.

- +open fun blur(): Unit -

focus

+(js) +

focus

-open fun focus(): Unit

Makes the input element focused.

- +open fun focus(): Unit -

getSnAttrs

+(js) +

getSnAttrs

-open fun getSnAttrs(): List<StringPair>

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

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

getSnClass

+(js) +

getSnClass

-open fun getSnClass(): List<StringBoolPair>

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

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

hideOptions

+(js) +

hideOptions

-open fun hideOptions(): Unit

Hides dropdown with options.

- +open fun hideOptions(): Unit -

refreshSelectInput

+(js) +

refreshSelectInput

fun refreshSelectInput(): Unit -

refreshState

+(js) +

refreshState

open fun refreshState(): Unit -

remove

+(js) +

remove

-open fun remove(child: Component): SimplePanel

Removes given component from the current container.

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

removeAll

+(js) +

removeAll

-open fun removeAll(): SimplePanel

Removes all children from the current container.

- +open fun removeAll(): SimplePanel -

render

+(js) +

render

-open fun render(): VNode

Renders current component as a Snabbdom vnode.

- +open fun render(): VNode -

showOptions

+(js) +

showOptions

-open fun showOptions(): Unit

Opens dropdown with options.

- +open fun showOptions(): Unit -

toggleOptions

+(js) +

toggleOptions

-open fun toggleOptions(): Unit

Toggles visibility of dropdown with options.

- - - - -

Inherited Functions

- - - - - - - - - - - - - +open fun toggleOptions(): Unit
-

addInternal

-
-fun addInternal(child: Component): SimplePanel -

Protected and final method to add given component to the current container.

-
-

childrenVNodes

-
-open fun childrenVNodes(): Array<VNode> -

Returns the array of the children Snabbdom vnodes.

-
-

getChildren

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

Returns a list of children of the current container.

-
@@ -367,24 +326,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> @@ -393,885 +355,888 @@ -

addBsBgColor

+(js) +

addBsBgColor

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

addBsBorder

+(js) +

addBsBorder

fun