Class: ColorConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
3.2.0

E87541-01

QuickNav

oj. ColorConverterFactory

Version:
  • 3.2.0
Since:
  • 0.6

Constructor

new ColorConverterFactory()

A factory implementation to create the built-in color converter of type oj.ColorConverter.
Source:
Example

create an instance of the jet color converter using the options provided

var ccf = oj.Validation.converterFactory(oj.ConverterFactory.CONVERTER_TYPE_COLOR);  
var options = {format: 'hsl'};
var colorConverter = ccf.createConverter(options);

Methods

<static> createConverter(options) → {oj.ColorConverter}

Creates an immutable (jet) color converter instance.
Parameters:
Name Type Argument Description
options Object <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.
Source:
Returns:
Type
oj.ColorConverter