How to use the @rxweb/reactive-form-validators.RxwebValidators.alphaNumeric function in @rxweb/reactive-form-validators

To help you get started, we’ve selected a few @rxweb/reactive-form-validators examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rxweb / rxweb / test / reactive-form-validators / validator / alphaNumeric.validator.spec.ts View on Github external
() => {
          expect(RxwebValidators.alphaNumeric({allowWhiteSpace:true})(new FormControl('Victoria@ Park'))).toEqual({ 'alphaNumeric': { message: 'Only alphanumerics are allowed.', refValues: ['Victoria@ Park'] } });
        });
        it('should error,allowWhiteSpace true and messageKey is defined.',
github rxweb / rxweb / rxwebio / src / assets / examples / reactive-form-validators / validators / alphaNumeric / allowWhiteSpace / alpha-numeric-allow-white-space.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            flatAddress:['', RxwebValidators.alphaNumeric({allowWhiteSpace:true })], 
        });
    }
}
github rxweb / rxweb / rxweb.io / src / assets / examples / reactive-form-validators / validators / alphaNumeric / allowWhiteSpace / alpha-numeric-allow-white-space.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            flatAddress:['', RxwebValidators.alphaNumeric({allowWhiteSpace:true })], 
        });
    }
}
github rxweb / rxweb / rxweb.io / src / assets / examples / reactive-form-validators / validators / alphaNumeric / complete / alpha-numeric-complete.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            areaName:['', RxwebValidators.alphaNumeric()], 
            flatAddress:['', RxwebValidators.alphaNumeric({allowWhiteSpace:true })], 
            postalAddress:['', RxwebValidators.alphaNumeric({allowWhiteSpace:true  ,message:'Please enter only alphanumerics, special characters are not allowed and whitespace is allowed.' })], 
            countryCode:['', RxwebValidators.alphaNumeric({conditionalExpression:(x,y) => x.areaName == "Delhi"  })], 
            cityCode:['', RxwebValidators.alphaNumeric({conditionalExpression:'x => x.areaName =="Delhi"' })], 
        });
    }
}
github rxweb / rxweb / rxweb.io / src / assets / examples / reactive-form-validators / validators / alphaNumeric / add / alpha-numeric-add.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            areaName:['', RxwebValidators.alphaNumeric()], 
        });
    }
}
github rxweb / rxweb / rxwebio / src / assets / examples / reactive-form-validators / validators / alphaNumeric / message / alpha-numeric-message.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            postalAddress:['', RxwebValidators.alphaNumeric({message:'Please enter only alphanumerics, special characters are not allowed.' })], 
        });
    }
}
github rxweb / rxweb / rxwebio / src / assets / examples / reactive-form-validators / validators / alphaNumeric / complete / alpha-numeric-complete.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            areaName:['', RxwebValidators.alphaNumeric()], 
            flatAddress:['', RxwebValidators.alphaNumeric({allowWhiteSpace:true })], 
            postalAddress:['', RxwebValidators.alphaNumeric({message:'Please enter only alphanumerics, special characters are not allowed.' })], 
            countryCode:['', RxwebValidators.alphaNumeric({conditionalExpression:(x,y) => x.areaName == "Delhi"  })], 
            cityCode:['', RxwebValidators.alphaNumeric({conditionalExpression:'x => x.areaName =="Delhi"' })], 
        });
    }
}
github rxweb / rxweb / rxwebio / src / assets / examples / reactive-form-validators / validators / alphaNumeric / add / alpha-numeric-add.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            areaName:['', RxwebValidators.alphaNumeric()], 
        });
    }
}
github rxweb / rxweb / rxweb.io / src / assets / examples / reactive-form-validators / validators / alphaNumeric / conditionalExpression / alpha-numeric-conditional-expression.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            areaName:['', RxwebValidators.alphaNumeric()], 
            cityCode:['', RxwebValidators.alphaNumeric({conditionalExpression:'x => x.areaName =="Delhi"' })], 
            countryCode:['', RxwebValidators.alphaNumeric({conditionalExpression:(x,y) => x.areaName == "Delhi"  })], 
        });
    }
}
github rxweb / rxweb / rxweb.io / src / assets / examples / reactive-form-validators / validators / alphaNumeric / message / alpha-numeric-message.component.ts View on Github external
ngOnInit() {
        this.locationFormGroup = this.formBuilder.group({
            postalAddress:['', RxwebValidators.alphaNumeric({allowWhiteSpace:true  ,message:'Please enter only alphanumerics, special characters are not allowed and whitespace is allowed.' })], 
        });
    }
}

@rxweb/reactive-form-validators

[![Build Status](https://dev.azure.com/ajayojha/rxweb/_apis/build/status/rxweb-CI?branchName=master)](https://dev.azure.com/ajayojha/rxweb/_build/latest?definitionId=39&branchName=master) [![Gitter](https://badges.gitter.im/rx-web/Lobby.svg)](https://git

MIT
Latest version published 1 year ago

Package Health Score

57 / 100
Full package analysis