setCustomColors

sets custom colors that will be displayed at the bottom of the palette

void setCustomColors(array customColors);

Parameters

customColorsarrayan array with custom colors

Example

colorpicker.setCustomColors(["#f2f2f2","#8ac5d9","#ec9875","#7a8523"]);

Related samples

See also
Back to top