Skip to main content

getCustomColors()

returns an array of selected custom colors

getCustomColors(): string[];

Returns:

An array of custom colors.

Example

colorpicker.setCustomColors(["#f2f2f2","#8ac5d9","#ec9875","#7a8523"]);
var colors = colorpicker.getCustomColors();// -> ["#f2f2f2","#8ac5d9","#ec9875","#7a8523"]