Class: DateRestrictionValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
17.0.0

F92240-01

Since:
  • 0.6.0
Module:
  • ojvalidationfactory-datetime

Note: This class is deprecated since 8.0.0. Directly create new instances of DateRestrictionValidator instead.

QuickNav

Description

a factory method to create an instance of the built-in dateRestriction validator of type oj.DateRestrictionValidator.


Usage

Javascript Import Format
define(['ojs/ojvalidationfactory-datetime'], function(validationfactoryDatetime) {
 // Application should call API on validationfactoryDatetime.DateRestrictionValidatorFactory 
})
Typescript Import Format
//This class is not exported from module and can not be accessed in runtime.
//However to enable typechecking and ducktyping, you can access it as an interface.
import {DateRestrictionValidatorFactory} from "ojs/ojvalidationfactory-datetime";

//To access this type in your code,
class MyClass implements DateRestrictionValidatorFactory{
//or,
let myVariable: DateRestrictionValidatorFactory;

For additional information visit:


a factory method to create an instance of the built-in dateRestriction validator of type oj.DateRestrictionValidator.

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 oj.DateRestrictionValidator.ValidatorOptions <optional>
an object literal See oj.ojInputDate and oj.DateRestrictionValidator for details.

Returns:
Type
oj.DateRestrictionValidator