Docs (4.0.0)
class UIFormContext method

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