The rows.selection.get() method returns the list of currently selected rows.
DayPilot.Gantt.rows.selection.get();
Returns an array of DayPilot.Task objects.
const selectedRows = gantt.rows.selection.get();
DayPilot.Gantt.rows.selection.add()
DayPilot.Gantt.rows.selection.clear()
DayPilot.Gantt Class
Availability of this API item in DayPilot editions: