Usage
Javascript Import Format
define(['ojs/ojvalidationfactory-number'], function(validationfactoryNumber) { // Application should call API on validationfactoryNumber.NumberConverterFactory })
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 {NumberConverterFactory} from "ojs/ojvalidationfactory-number";
//To access this type in your code,
class MyClass implements NumberConverterFactory{
//or,
let myVariable: NumberConverterFactory;
For additional information visit:
A factory implementation to create the built-in number converter of type
oj.IntlNumberConverter.
Methods
-
createConverter(options) : {oj.IntlNumberConverter}
-
Creates an immutable (jet) number converter instance.
Parameters:
Name Type Argument Description options
oj.IntlNumberConverter.ConverterOptions <optional>
an object literal used to provide optional information to initialize the jet number converter with. For details on what to pass for options, refer to oj.IntlNumberConverter Returns: