onTimeSelect

fires when the Done button is clicked

void onTimeSelect(string|Date value);
valuestring|Datethe current value of the control

Example

$$("myBoard").attachEvent("onTimeSelect", function(current){
  if(current > someValue) {
    // do smth
  }
});

Details

The function executed on this event takes one argument - the current value of the control.

The event handler to the onTimeSelect event can also be attached inside the on property of the related control:

{
  view:"timeboard",
  // ..config
  on:{
    onTimeSelect(currVal){
        // ...your handler
    }
  }
}
See also
Back to top