import { FormControlConfig } from "@rxweb/reactive-dynamic-forms" ; import { AbstractControl } from "@angular/forms" ; export class NonAsyncCustomValidation extends FormControlConfig { validator = ( control ) => { return control . value == "India" ? null : { required : { message : 'Custom Required' } } ; } ; }