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

setCustomColors

defines user's custom colors

void setCustomColors(string|array color);

Parameters

colorstring|arraythe value of a color or a comma-separated list of colors in different formats

Example

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

Back to top