onBeforeTaskSelected

fires before the user selects a task

boolean onBeforeTaskSelected(string|number id);
idstring|numberthe task id
booleandefines whether the default action of the event will be triggered (true) or canceled (false)

Example

gantt.attachEvent("onBeforeTaskSelected", function(id){
    //any custom logic here
    return true;
});

Details

The event is blockable. Return false to cancel the default processing.

See also
Back to top