Class: ColorConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
9.0.0

F24343-01

QuickNav

ColorConverterFactory

Version:
  • 9.0.0
Since:
  • 0.6.0
Module:
  • ojvalidationfactory-base

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 {ColorConverterFactory} from "ojs/ojvalidationfactory-base";

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

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 ColorConverter instead.
A factory implementation to create the built-in color converter of type oj.ColorConverter.
Deprecated:
Since Description
8.0.0 Directly create new instances of ColorConverter instead.

Methods

createConverter(options) : {oj.ColorConverter}

Creates an immutable (jet) color converter instance.
Parameters:
Name Type Argument Description
options oj.ColorConverter.ConverterOptions <optional>
an object literal used to provide an optional information to initialize the jet color converter. For details on what to pass for options, refer to oj.ColorConverter.
Returns:
Type
oj.ColorConverter