Class: DateTimeRangeValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


DateTimeRangeValidatorFactory

Version:
  • 7.1.0
Since:
  • 0.6
Module:
  • ojvalidation-datetime

Module usage

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

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/ojvalidation-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.

a factory implementation to create an instance of the built-in dateTimeRange validator of type oj.DateTimeRangeValidator.

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