Class: DateRestrictionValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

oj. DateRestrictionValidatorFactory

Version:
  • 3.2.0
Since:
  • 0.6

Constructor

new DateRestrictionValidatorFactory()

a factory method to create an instance of the built-in dateRestriction validator of type oj.DateRestrictionValidator.
Source:
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

<static> 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.

Source:
Returns:
Type
oj.DateRestrictionValidator