Type Definitions
Functions
-
convertColor( color, outputFormat ) → string
module:ui/colorpicker/utils~convertColor
Parses and converts the color string to requested format. Handles variety of color spaces
like hsl
, hex
or rgb
.
Parameters
color
:
string
-
outputFormat
:
ColorPickerOutputFormat
-
Returns
string
A color string.
-
convertToHex( color ) → string
module:ui/colorpicker/utils~convertToHex
Converts a color string to hex format.
Parameters
color
:
string
-
Returns
string
A color string.
-
registerCustomElement( elementName, constructor ) → void
module:ui/colorpicker/utils~registerCustomElement
Registers the custom element in the
CustomElementsRegistry.
Parameters
elementName
:
string
-
constructor
:
CustomElementConstructor
-
Returns
void
-
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing?
Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features.
We appreciate your feedback to help us ensure its accuracy and completeness.