bindCustom

open fun <C : StringFormControl> C.bindCustom(key: KProperty1<K, Any?>, required: Boolean = false, requiredMessage: String? = null, layoutType: FormType? = null, validatorMessage: (C) -> String?? = null, validator: (C) -> Boolean?? = null): C

Bind a string control to the form panel bound to custom field type.

Return

the control itself

Parameters

key

key identifier of the control

required

determines if the control is required

requiredMessage

optional required validation message

layoutType

style control for given form layout

validatorMessage

optional function returning validation message

validator

optional validation function