Constructor
new DateRestrictionValidator(options)
Constructs a DateRestrictionValidator that ensures the value provided is not in a disabled entry of dayMetaData
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
Object |
<optional> |
an object literal used to provide:
|
- Source:
Methods
-
_inDisabledMetaData(value) → {boolean}
-
Validates whether the date provided is part of disabled date within dayMetaData
Parameters:
Name Type Description value
Object that is being validated - Source:
Returns:
boolean of whether it is in disabled meta data- Type
- boolean
-
Init(options)
-
Initializes validator instance with the set options
Parameters:
Name Type Argument Description options
Object <optional>
- Source:
-
validate(value) → {Object}
-
Validates whether the date provided is part of disabled date within dayMetaData
Parameters:
Name Type Description value
Object that is being validated - Source:
Throws:
when there is no match- Type
- Error
Returns:
original if validation was successful- Type
- Object