returns an array of the currently selected tasks
array | an array of tasks' ids |
gantt.getSelectedTasks();
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.