Class: DateTimeRangeValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
9.2.0

F30740-01

QuickNav

DateTimeRangeValidatorFactory

Version:
  • 9.2.0
Since:
  • 0.6.0
Module:
  • ojvalidationfactory-datetime

Module usage

See JET Module Loading for an overview of module usage within JET.

Javascript Import Format
define(['ojs/ojvalidationfactory-datetime'], function(validationfactoryDatetime) {
 // Application should call API on validationfactoryDatetime.DateTimeRangeValidatorFactory 
})
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 {DateTimeRangeValidatorFactory} from "ojs/ojvalidationfactory-datetime";

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

JET In Typescript

A detailed description of working with JET elements and classes in your typescript project can be found at: JET Typescript Usage.

Deprecated:
Since Description
8.0.0 Directly create new instances of DateTimeRangeValidator instead.
a factory implementation to create an instance of the built-in dateTimeRange validator of type oj.DateTimeRangeValidator.
Deprecated:
Since Description
8.0.0 Directly create new instances of DateTimeRangeValidator instead.

Methods

createValidator(options) : {oj.DateTimeRangeValidator}

Creates an immutable validator instance of type oj.DateTimeRangeValidator that ensures that the (datetime) value provided is within a given range.
Parameters:
Name Type Argument Description
options oj.DateTimeRangeValidator.ValidatorOptions <optional>
an object literal used to provide the minimum, maximum and other optional values. See oj.DateTimeRangeValidator for details.

Returns:
Type
oj.DateTimeRangeValidator