Constructor
new DateTimeRangeValidator(options)
Constructs a DateTimeRangeValidator that ensures the value provided is within a given range
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
Object |
<optional> |
an object literal used to provide:
|
- Source:
Methods
-
getHint() → {String|null}
-
A message to be used as hint. There is no default hint for this property.
- Source:
- ojvalidation/DateTimeRangeValidator.js, line 171
Returns:
a hint message or null if no hint is available in the options- Type
- String | null
-
Init(options)
-
Initializes validator instance with the set options
Parameters:
Name Type Argument Description options
Object <optional>
- Source:
-
validate(value) → {Object}
-
Validates the minimum + maximum conditions
Parameters:
Name Type Description value
Object that is being validated - Source:
- ojvalidation/DateTimeRangeValidator.js, line 105
Throws:
when there is no match- Type
- Error
Returns:
original if validation was successful- Type
- Object