ValidationObject
ValidationObject:
object
Type declaration
message
message:
string
Error message shown to user if validation fails
Example: "Invalid email format"
regExp
regExp:
string
Should be pure string (not RegExp string)
Example:
// regex for email
regExp: '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$',