onTaskSelected

fires when the user selects a task

void onTaskSelected(string|number id);
idstring|numberthe task id

Example

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

Details

The event is called for each task of the multiselection range.

See also
Back to top