Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by mongkol on Aug 28, 2008 10:32
open dhtmlx forum
color picker event

if i want to create text box for get hex color code for dhx color picker, It can return color code.
But if i want too return -1 to my text box what i can do?
Answer posted by Support on Aug 29, 2008 02:02
You can attach custom code which will be called each time when color selected in colorpicker as 

cp.setOnSelectHandler(function(rgb,hex,hsl){
   //any custom here
})

beware, that usage of setOnSelectHandler will break "link-to-input functionality"