add Custom
fun <C : StringFormControl> addCustom(key: KProperty1<K, Any?>, control: C, required: Boolean = false, requiredMessage: String? = null, validatorMessage: (C) -> String?? = null, validator: (C) -> Boolean?? = null)
Adds a string control to the form bound to custom field type.
Parameters
key
key identifier of the control
control
the string form control
required
determines if the control is required
required Message
optional required validation message
validator Message
optional function returning validation message
validator
optional validation function