toggleTaskSelection

selects the specified task if it was unselected and vice versa

void toggleTaskSelection(string/number task);

Parameters

taskstring/numberthe task's id

Example

gantt.toggleTaskSelection("t_1"); 
gantt.render();

Details

This method is defined in the multiselect.js extension, so you need to activate the multiselect plugin. Read the details in the Multi-Task Selection article.

See also
Back to top