onColorSelect

fires when the Select button is clicked

void onColorSelect(string value);
valuestringthe current value of the control

Example

$$("myCS").attachEvent("onColorSelect", function(current){
  if(current === someHEXCode) {
    // do smth
  }
});

Details

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
    }
  }
}
See also
Back to top