Skip to main content

toggleTaskSelection

Description

Selects the specified task if it was unselected and vice versa

toggleTaskSelection: (taskId: string | number) => void

Parameters

  • taskId - (required) string | number - the task's id

Example

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

Details

note

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.