File

input/src/validators/input-validators.ts

Description

Form validators for inputs.

Example :
form: FormGroup = new FormGroup({
  socialSecurityNumber: new FormControl('', [InputValidators.socialSecurityNumber])
});

Import

Example :
import { InputValidators } from '@talenra/components/input';

Index

Methods

Methods

Static billingNumber
billingNumber(control: AbstractControl)

Validates billing number (German: "Abrechnungsnummer").

Examples for a valid values: EF.132, EF1.45K.123

See BillingNumberDirective

Parameters :
Name Type Optional
control AbstractControl No
Returns : literal type | null

null if valid, { socialSecurityNumber: true } if invalid.

Static socialSecurityNumber
socialSecurityNumber(control: AbstractControl)

Validates a Swiss social security number.

Example for a valid value: 756.9217.0769.85

See SocialSecurityNumberDirective

Parameters :
Name Type Optional
control AbstractControl No
Returns : literal type | null

null if valid, { socialSecurityNumber: true } if invalid.

results matching ""

    No results matching ""