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 --- .../-form-panel/add-custom.html | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 api/pl.treksoft.kvision.form/-form-panel/add-custom.html (limited to 'api/pl.treksoft.kvision.form/-form-panel/add-custom.html') diff --git a/api/pl.treksoft.kvision.form/-form-panel/add-custom.html b/api/pl.treksoft.kvision.form/-form-panel/add-custom.html new file mode 100644 index 00000000..d488e3da --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form-panel/add-custom.html @@ -0,0 +1,32 @@ + + + +FormPanel.addCustom - kvision + + + +kvision / pl.treksoft.kvision.form / FormPanel / addCustom
+
+

addCustom

+ +open fun <C : StringFormControl> addCustom(key: KProperty1<K, Any?>, 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 bound to custom field type.

+

Parameters

+

+key - key identifier of the control

+

+control - the string form control

+

+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

+ + -- cgit