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?
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”