From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Mon, 2 Apr 2018 01:35:47 +0200 Subject: API documentantion update --- api/pl.treksoft.kvision.form/-form/add.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (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 index 13098c33..2980cadf 100644 --- a/api/pl.treksoft.kvision.form/-form/add.html +++ b/api/pl.treksoft.kvision.form/-form/add.html @@ -72,5 +72,21 @@ current form

validator - optional validation function

Return
current form

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

Adds a files control to the form.

+

Parameters

+

+key - key identifier of the control

+

+control - the files form control

+

+required - determines if the control is required

+

+validatorMessage - optional function returning validation message

+

+validator - optional validation function

+

Return
+current form

-- cgit