Class: ColorConverterFactory

Oracle® JavaScript Extension Toolkit (JET)
5.0.0

E90577-01

QuickNav

ColorConverterFactory

Version:
  • 5.0.0
Since:
  • 0.6
Module:
  • ojvalidation-base
A factory implementation to create the built-in color converter of type oj.ColorConverter.
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

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.
Returns:
Type
oj.ColorConverter