From 6ce402754e01940fc641f8814eae03599a622b1c Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Sun, 9 Feb 2020 14:23:52 +0100 Subject: API documentation for KVision 2.10.0 --- api/pl.treksoft.kvision.form/-form-panel/add.html | 30 +++++++++++++++-------- 1 file changed, 20 insertions(+), 10 deletions(-) (limited to 'api/pl.treksoft.kvision.form/-form-panel/add.html') diff --git a/api/pl.treksoft.kvision.form/-form-panel/add.html b/api/pl.treksoft.kvision.form/-form-panel/add.html index cac9e4ea..37123c44 100644 --- a/api/pl.treksoft.kvision.form/-form-panel/add.html +++ b/api/pl.treksoft.kvision.form/-form-panel/add.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.form / FormPanel / add

add

- -open fun <C : StringFormControl> add(key: KProperty1<K, String?>, control: C, required: Boolean = false, requiredMessage: 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 string control to the form panel.

Parameters

@@ -20,14 +20,16 @@ required - determines if the control is required

requiredMessage - optional required validation message

+

+legend - put this control inside a fieldset with given legend

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

- -open fun <C : BoolFormControl> add(key: KProperty1<K, Boolean?>, control: C, required: Boolean = false, requiredMessage: 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 boolean control to the form panel.

Parameters

@@ -38,14 +40,16 @@ current form panel

required - determines if the control is required

requiredMessage - optional required validation message

+

+legend - put this control inside a fieldset with given legend

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

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

Adds a number control to the form panel.

Parameters

@@ -56,14 +60,16 @@ current form panel

required - determines if the control is required

requiredMessage - optional required validation message

+

+legend - put this control inside a fieldset with given legend

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

- -open fun <C : DateFormControl> add(key: KProperty1<K, Date?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: ((C) -> String?)? = null, validator: ((C) -> Boolean?)? = null): FormPanel<K> + +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>

Adds a date control to the form panel.

Parameters

@@ -74,14 +80,16 @@ current form panel

required - determines if the control is required

requiredMessage - optional required validation message

+

+legend - put this control inside a fieldset with given legend

validatorMessage - optional function returning validation message

validator - optional validation function

Return
current form panel

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

Adds a files control to the form panel.

Parameters

@@ -92,6 +100,8 @@ current form panel

required - determines if the control is required

requiredMessage - optional required validation message

+

+legend - put this control inside a fieldset with given legend

validatorMessage - optional function returning validation message

-- cgit