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

getSelectedColor

gets the selected color

array getSelectedColor();

Returns

arrayarray of color codes in Hex, RGB and HSL formats

Example

myColorPicker.setColor("#eb4c13");
 
var colorSelected = myColorPicker.getSelectedColor();
// ["#eb4c13", [235, 76, 19], [16, 85, 50]]

Details

Array elements:

  • a Hex rgb value
  • an RGB component array
  • an HSL component array
See also
Back to top