validator

inline fun validator(targetToDisable: Disableable? = null, messageLabel: Label? = null, style: String = defaultStyle, init: FormValidator.() -> Unit): FormValidator

FormValidator factory function.

Return

a new instance of a FormValidator

Parameters

targetToDisable

target actor that will be disabled if form is invalid.

messageLabel

label will be changed when the form is valid or invalid. May be null.

style

name of the FormValidator style.