onTaskMultiSelect
Description
Fires after the task selection state has changed (the task has been selected/unselected)
onTaskMultiSelect: (id: string | number, state: boolean, e: Event) => void;
Parameters
id- (required) string | number - the id of a taskstate- (required) boolean - true if the task has been selected, false - if unselectede- (required) Event - a native event object
Example
gantt.attachEvent("onTaskMultiSelect", function(id, state, e){
// some logic here
});
Details
note
This event is defined in the multiselect extension, so you need to activate the multiselect plugin. Read the details in the Multi-Task Selection article.
The event is called for each task of the range.