Class: NumberRangeValidatorFactory

Oracle® JavaScript Extension Toolkit (JET)
7.1.0

F18183-01

QuickNav


NumberRangeValidatorFactory

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

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 {NumberRangeValidatorFactory} from "ojs/ojvalidation-number";

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

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 method to create an instance of a built-in numberRange validator of type oj.NumberRangeValidator.

Methods

createValidator(options) → {oj.NumberRangeValidator}

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

Returns:
Type
oj.NumberRangeValidator