The rows.selection.add() method adds the specified DayPilot.Task to the current row selection.
Declaration
DayPilot.Gantt.rows.selection.add(task);Parameters
task(DayPilot.Task) - item to add to the row selection
Example
const task = gantt.tasks.find("1");
gantt.rows.selection.add(task);See Also
DayPilot.Gantt.rows.selection.clear()
DayPilot.Gantt.rows.selection.get()
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot