addRequired
Adds a validation test for the specified field, which results in an error if the field is null, undefined, false, or an empty string.
addRequired(name: keyof TData, errorMessage?: StringConvertible): this
Related
- class UIFormContextAn object that contains form field data along with validation tests.