Check documentation for the latest version of dhtmlxSuite getCustomColors DHTMLX Docs

getCustomColors

returns user's custom colors saved in the memory panel

array getCustomColors();
arrayarray of colors codes

Example

myColorPicker.setCustomColors("#aabbcc");
 
var colorsCustom = myColorPicker.getCustomColors();
// (["#aabbcc"]);
 
// or
myColorPicker.setCustomColors("#aabbcc","rgb(255,0,0)",[255,0,233]);
 
var colorsCustom = myColorPicker.getCustomColors();
// (["#aabbcc", "#ff0000", "#ff00e9"]);
 
// or
myColorPicker.setCustomColors("#aabbcc,#ff0000,#00ff00");
 
var colorsCustom = myColorPicker.getCustomColors();
// (["#aabbcc", "#ff0000", "#00ff00"]);

Back to top