Exports the ValidationMixin and some commonly needed validations
- Version:
-
- 3.0.0
- Since:
-
- 1.0.0
- Source:
Classes
Methods
-
<static> isAllDigits(value)
-
Checks to see if a given value is all digits or not.
Parameters:
Name Type Description value
String Returns:
- Type
- boolean
-
<static> isEqual(propName)
-
Tracks two properties of any class to be equal.
Parameters:
Name Type Description propName
String - Source:
Returns:
True or false if the given value passes the given regex test is valid.- Type
- function
-
<static> isRequired(value)
-
isRequired
Parameters:
Name Type Description value
String Returns:
- Type
- Boolean
-
<static> maxLength(length)
-
Checks to see if the given value meets the maximum length given.
Parameters:
Name Type Description length
Number The max length - Source:
Returns:
- Type
- function
-
<static> minLength(length)
-
Checks to see if the given value meets the minimum length given.
Parameters:
Name Type Description length
Number The min length - Source:
Returns:
- Type
- function
-
<static> validationMixin(superClass)
-
Parameters:
Name Type Description superClass
Object Returns:
- Type
- ValidationMixin