getCustomColors

returns an array of selected custom colors

array getCustomColors();

Returns

arrayan array of custom colors

Example

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

See also
Back to top