Skip to main content

setCustomColors()

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

setCustomColors(customColors: string[]): void;

Parameters:

customColors: array - an array with custom colors

Example

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