forms/src/validator.ts
Implements logic to validate the current value of a form control as specified by the validation rules on a Blueriq Field.
Methods |
constructor(validator: FieldValidator, frontendValidation: FrontendValidationBehavior)
|
|||||||||
Parameters :
|
validate | ||||||||||||
validate(control: FormControl, field: Field, value: Value)
|
||||||||||||
Validates an Angular FormControl and returns errors as expected by Angular's ValidatorFn. The provided value is obtained from the control's current value, converted into a Blueriq Value type.
Parameters :
Returns :
ValidationErrors | null
|