Creates a validator that checks if a value is a valid integer and within a certain value range.
Minimum value allowed (including this value)
Optional
aMax: number = Number.MAX_VALUEMaximum value allowed (including this value)
validator function.
Creates a validator to validate a day value.
Property name for month
Property name for year
UFModel instance
validator function.
Creates a validator that checks if a value is a valid integer and within a certain value range.
Minimum value allowed (including this value)
Optional
aMax: number = Number.MAX_VALUEMaximum value allowed (including this value)
validator function.
Creates a validator that checks if a value is a valid number and within a certain value range.
Minimum value allowed (including this value)
Optional
aMax: number = Number.MAX_VALUEMaximum value allowed (including this value)
validator function.
Creates a validator function that checks if a value is string with a certain length.
Minimal number of characters allowed
Optional
aMax: number = Number.MAX_VALUEMaximum number of characters allowed
validator function.
Static
createCreates a validator that checks if a property contains a valid value. The validator does not do anything with the passed value.
Property name
Data instance
validator function.
Static
createCreates a validator that checks if a value matches a boolean value.
Value to match
validator function.
Static
createCreates a validator that checks if a value is equal to a property.
Property name
Data instance
validator function.
Static
createCreates a validator that optionally validates a value. If a value is empty or '' then the validator will return true else it will pass the value to another validator.
Validator to use for non empty values.
validator function.
Static
createCreates a validator function that checks if a value matches a regular expression.
Regular expression to use for testing
validator function.
Static
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isChecks if a property has a valid value.
Data to get property value from
Name of property
Validator to use
Optional
aValue: anyValue to validate, when missing use the value of the property.
result from validator or true if validator is not supported.
Static
isChecks if value is valid.
Value to validate
Validator to use
result from validator or true if validator is not supported.
Static
is
UFValidators defines various static methods to validate values.
There are two form of validation methods: