validate

fun validate(markFields: Boolean = true): Boolean

Invokes validator function and validates the form.

Return

validation result

Parameters

markFields

determines if form fields should be labeled with error messages


fun validate(key: KProperty1<K, *>, markField: Boolean = true): Boolean
fun validate(key: String, markField: Boolean = true): Boolean

Invokes validator for a single form field.

Return

validation result

Parameters

key

key identifier of the control

markField

determines if form field should be labeled with error message