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 optionsObject <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