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 --- .../-form-panel/index.html | 838 ++++++++++----------- 1 file changed, 388 insertions(+), 450 deletions(-) (limited to 'api/pl.treksoft.kvision.form/-form-panel/index.html') diff --git a/api/pl.treksoft.kvision.form/-form-panel/index.html b/api/pl.treksoft.kvision.form/-form-panel/index.html index 1fab0a81..97859254 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/index.html +++ b/api/pl.treksoft.kvision.form/-form-panel/index.html @@ -8,17 +8,18 @@ kvision / pl.treksoft.kvision.form / FormPanel

FormPanel

-open class FormPanel<K : Any> : SimplePanel +(js) open class FormPanel<K : Any> : SimplePanel

Bootstrap form component.

Constructors

+FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String> = setOf(), serializer: KSerializer<K>, customSerializers: Map<KClass<*>, KSerializer<*>>? = null)
-

<init>

+(js) +

<init>

-FormPanel(method: FormMethod? = null, action: String? = null, enctype: FormEnctype? = null, type: FormType? = null, condensed: Boolean = false, horizRatio: FormHorizontalRatio = FormHorizontalRatio.RATIO_2, classes: Set<String> = setOf(), serializer: KSerializer<K>, customSerializers: Map<KClass<*>, KSerializer<*>>? = null)
@@ -27,114 +28,102 @@ -

action

+(js) +

action

-var action: String?

The URL address to send data.

- +var action: String? -

autocomplete

+(js) +

autocomplete

-var autocomplete: Boolean?

Determines if the form should have autocomplete.

- +var autocomplete: Boolean? -

condensed

+(js) +

condensed

-var condensed: Boolean

Determines if the form is condensed.

- +var condensed: Boolean -

enctype

+(js) +

enctype

-var enctype: FormEnctype?

The form encoding type.

- +var enctype: FormEnctype? -

horizRatio

+(js) +

horizRatio

-var horizRatio: FormHorizontalRatio

Horizontal form layout ratio.

- +var horizRatio: FormHorizontalRatio -

method

+(js) +

method

-var method: FormMethod?

HTTP method.

- +var method: FormMethod? -

name

+(js) +

name

-var name: String?

The form name.

- +var name: String? -

novalidate

+(js) +

novalidate

-var novalidate: Boolean?

Determines if the form is not validated.

- +var novalidate: Boolean? -

target

+(js) +

target

-var target: FormTarget?

The form target.

- +var target: FormTarget? -

validator

+(js) +

validator

-var validator: ((Form<K>) -> Boolean?)?

Validation function.

- +var validator: ((Form<K>) -> Boolean?)? -

validatorMessage

+(js) +

validatorMessage

-var validatorMessage: ((Form<K>) -> String?)?

Function returning validation message.

- - - - -

Inherited Properties

- - - - - +var validatorMessage: ((Form<K>) -> String?)?
-

children

-
-val children: MutableList<Component>
@@ -143,203 +132,145 @@ -

add

+(js) +

add

-open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: String? = null, legend: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K>

Adds a string control to the form panel.

-open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: String? = null, legend: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K> +open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: String? = null, legend: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K>

Adds a boolean control to the form panel.

-open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false, requiredMessage: String? = null, legend: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K> +open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: String? = null, legend: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K>

Adds a number control to the form panel.

-open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, requiredMessage: String? = null, legend: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K> +open fun <C : NumberFormControl> add(key: KProperty1<K, Number?>, control: C, required: Boolean = false,