From 415afec335659ca6bc206b34bdd3c2fe4635718f Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Thu, 1 Mar 2018 15:19:44 +0100 Subject: KVision site with Jekyll --- api/pl.treksoft.kvision.form/-form/add.html | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 api/pl.treksoft.kvision.form/-form/add.html (limited to 'api/pl.treksoft.kvision.form/-form/add.html') diff --git a/api/pl.treksoft.kvision.form/-form/add.html b/api/pl.treksoft.kvision.form/-form/add.html new file mode 100644 index 00000000..c17affd8 --- /dev/null +++ b/api/pl.treksoft.kvision.form/-form/add.html @@ -0,0 +1,28 @@ + + + +Form.add - kvision + + + +kvision / pl.treksoft.kvision.form / Form / add
+
+

add

+ +fun <C : FormControl> add(key: String, control: C, required: Boolean = false, validatorMessage: (C) -> String? = null, validator: (C) -> Boolean? = null): Form<K> +

Adds a control to the form.

+

Parameters

+

+key - key identifier of the control

+

+control - the form control

+

+required - determines if the control is required

+

+validatorMessage - optional function returning validation message

+

+validator - optional validation function

+

Return
+current form

+ + -- cgit