src/services/baseValidatorService/base-validator.service.ts
Methods |
constructor()
|
Base constructor of the service |
addCompareValidator |
addCompareValidator(elementToCompare: string, validator: any)
|
Adds the indicated compare validator. This method is intended to be overridden.
Returns :
void
|
addValidationSummary | ||||||
addValidationSummary(summary: any)
|
||||||
Adds a validation summary to the service
Parameters :
Returns :
void
|
addValidator | ||||||
addValidator(validator: any)
|
||||||
Adds the indicated validator. This method is intended to be overridden.
Parameters :
Returns :
void
|
checkValidators | ||||||
checkValidators(validationGroup: string)
|
||||||
Checks the results of the validations. This method is intended to be overridden.
Parameters :
Returns :
boolean
the summmary of the validators. |
getActiveErrorMessages | ||||||
getActiveErrorMessages(validationGroup: string)
|
||||||
Collect all the error messages from the invalid validators.
Parameters :
Returns :
string[]
the active error messages. |
removeValidator | ||||||
removeValidator(validator: any)
|
||||||
Removes the indicated validator. This method is intended to be overridden.
Parameters :
Returns :
void
|
showValidationSumaries | ||||||
showValidationSumaries(validationGroup: string)
|
||||||
Shows the validation summaries with the given validation group. This method is intended to be overridden.
Parameters :
Returns :
void
|
validate |
validate(controlToValidate: string, expressionToValidate: string)
|
Check the validators attached to the indicated control. This method is intended to be overridden.
Returns :
boolean
the results of the validation |