Class: DateRestrictionValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
5.0.0

E90577-01

QuickNav

DateRestrictionValidatorFactory

Version:
  • 5.0.0
Since:
  • 0.6
Module:
  • ojvalidation-datetime
a factory method to create an instance of the built-in dateRestriction validator of type oj.DateRestrictionValidator.
Example

create an instance of the dateRestriction validator using the factory

var drvf = oj.Validation.validatorFactory(oj.ValidatorFactory.VALIDATOR_TYPE_DATERESTRICTION);
var drValidator = drvf.createValidator();
 

Methods

createValidator(options) → {oj.DateRestrictionValidator}

Creates an immutable validator instance of type oj.DateRestrictionValidator that ensures that the isoString value provided is not in a disabled entry of dayFormatter callback.
Parameters:
Name Type Argument Description
options Object <optional>
an object literal See oj.ojInputDate and oj.DateRestrictionValidator for details.

Returns:
Type
oj.DateRestrictionValidator