Check documentation for the latest version 6.0 of dhtmlxSuite getCustomColors DHTMLX Docs

getCustomColors

returns user's custom colors saved in the memory panel

array getCustomColors();

Returns

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