src/app/utils/validators.ts
This class provides commonly used validators in CCIMS usable for e.g. input fields
Properties |
|
Static Readonly contentValidator |
Default value : Validators.maxLength(655536)
|
Defined in src/app/utils/validators.ts:27
|
Ensures that the text has the appropriate length for content |
Static Readonly nameFormatValidator |
Default value : Validators.compose([CCIMSValidators.nameValidator, Validators.pattern('([^ ]+ )*([^ ]+)+')])
|
Defined in src/app/utils/validators.ts:16
|
Ensures that the text is both usable as a name (#nameValidator) and that the text does not start/end with a whitespace (white-spaces in the name are allowed) |
Static Readonly nameValidator |
Default value : Validators.maxLength(256)
|
Defined in src/app/utils/validators.ts:10
|
Ensures that text has the appropriate length to be used as a name |
Static Readonly urlValidator |
Default value : Validators.maxLength(655536)
|
Defined in src/app/utils/validators.ts:22
|
Ensures that the provided text has the correct length and the correct format for an URL |