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: