Articles

Validation

At the time of this writing, validation is not yet supported by TableControl. Form supports validation. All input control has “required” validation out of the box as it is implemented in BaseControl. Call setRequired(true) to make an input control mandatory. A red star will be displayed next to the input control to inform user that user has to specify a value for it.

Custom validation could be implemented by implementing Validator interface. After that set it to input control by calling addValidator(Validator<T> validator).

Lastly, call Form’s validate() method to trigger validation across all input controls.