selects the specified task if it was unselected and vice versa
taskId | string | number | the task's id |
gantt.toggleTaskSelection("t_1");
gantt.render();
This method is defined in the multiselect extension, so you need to activate the multiselect plugin. Read the details in the Multi-Task Selection article.