parent - string or object, id of container, where tree will be initialized, mandatory
link - {string|object} link color picker to some area(
linkTo)
-
color - {string} select defined color(
setColor)
click - {boolean} enable/disable limited color selection mode, optional
colors - {boolean} is custom colors area visible, optional
hide - {boolean} enable init in hidden state, optional
full - {boolean} simple selection or complex selection mode, optional
any event can be assigned by using property equal to event name
picker = new dhtmlXColorPicker({
parent:"my_picker_here",
onSelect:function(){
alert("color selected");
}
});