From 806edfceeefe7fda47924f97237974e99fe28a02 Mon Sep 17 00:00:00 2001
From: Robert Jaros
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.
+
+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