Creates an instance of the ValidationContainer class.
Optional
getValue: () => TValueFunction to retrieve the resulting value for validation.
Optional
getRawValue: () => TRawValueFunction to retrieve the raw value for validation.
Optional
_options: ValidationContainerCreateOptionsOptional settings for creating the validation container.
Optional
getFunction to retrieve the raw value for validation.
Optional
getFunction to retrieve the resulting value for validation.
Indicates whether the validation container has validation function that runs asynchronously.
Indicates whether the validation container has no validators.
Indicates whether the validation container is enabled.
The property only affects automatic validation when accessing the result property. In this case, validation can be performed by using validate or validateAsync methods.
Indicates whether the validation container work at manual mode. In manual mode, validation results are handled by the calling code.
When accessing the result property, it will return value that was calculated at the time of the last validate or validateAsync methods call.
Current validation result of value.
Current validation result of value for displaying.
The displayed value depends on the result and resultMode.
Additional information about validation of the object.
The number of validators in the container.
Adds a synchronous validator to the validation container.
The validator function to add.
Optional
settings: IValidationContainerValidatorSettingsOptional settings for the validator.
true
if the validator was added successfully, otherwise false
.
Adds an asynchronous validator to the validation container.
The validator function to add.
Optional
settings: IValidationContainerValidatorSettingsOptional settings for the validator.
true
if the validator was added successfully, otherwise false
.
Clears all validators from the container.
Checks if a specific validator function is present in the container.
The validator function to check.
true
if the validator function is present, otherwise false
.
Removes a specific validator function from the container.
The validator function to remove.
true
if the validator was removed successfully, otherwise false
.
Validates a value using the container's only synchronous validators.
The validation result.
Validates a value using the container's all validators.
The validation result.
A container class for managing value validation.