Scroll to the first invalid element based on the selector in the validation.scroll.selector
setting. Defaults to .has-error
Validate the ContentValue or ObjectData for a given models local state. Custom regex validation will be
taken from the models validation
attribute, and a custom message from the validationMessage
attribute
The model that will be validated
The matching local state for the model that will be validated
Validate a boolean
The boolean to validate
Custom validation message to be returned in an invalid response
Set to true to return an invalid response if the the value false
Only isRequired validation is currently supported for lists
The array to validate
Custom validation message to be returned in an invalid response
Set to true to return an invalid response if the the value is null or empty
Validate a number against a regex and / or null check if required
The number to validate
Regex to validate the number with. toString()
will be called on the number first
Custom validation message to be returned in an invalid response
Set to true to return an invalid response if the the value is null or empty
Only isRequired validation is currently supported for objects
The object to validate
Custom validation message to be returned in an invalid response
Set to true to return an invalid response if the the value is null or empty
Validate a string against a regex and / or null check if required
The string to validate
Regex to validate the string with.
Custom validation message to be returned in an invalid response
Set to true to return an invalid response if the the value is null or empty
Generated using TypeDoc
Add an invalid notification populated with the message from the
localization.validation.notification
setting