Usage
Javascript Import Format
define(['ojs/ojvalidationfactory-number'], function(validationfactoryNumber) { // Application should call API on validationfactoryNumber.NumberRangeValidatorFactory })
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/ojvalidationfactory-number";
//To access this type in your code,
class MyClass implements NumberRangeValidatorFactory{
//or,
let myVariable: NumberRangeValidatorFactory;
For additional information visit:
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: