fires when the Select button is clicked
value | string | the current value of the control |
$$("myCS").attachEvent("onColorSelect", function(current){
if(current === someHEXCode) {
// do smth
}
});
The function executed on this event, takes one argument - the current value of the control.
The event handler to the onColorSelect event can also be attached inside the on property of the related control:
{
view:"colorselect",
// ..config
on:{
onColorSelect(currVal){
// ...your handler
}
}
}