In-memory IGanttDatasource backed by a plain array of GanttTask objects.
Dependency links are derived automatically from each task's dependencies array on construction (and when setTasks is called).
dependencies
setTasks
const ds = new GanttArrayDatasource([ { id: '1', title: 'Design', start: new Date('2026-01-01'), end: new Date('2026-01-10') }, { id: '2', title: 'Build', start: new Date('2026-01-11'), end: new Date('2026-01-25'), dependencies: ['1'] },]); Copy
const ds = new GanttArrayDatasource([ { id: '1', title: 'Design', start: new Date('2026-01-01'), end: new Date('2026-01-10') }, { id: '2', title: 'Build', start: new Date('2026-01-11'), end: new Date('2026-01-25'), dependencies: ['1'] },]);
Optional payload type on each task.
Returns all dependency links derived from task dependencies arrays.
Returns all tasks.
Replace all tasks and rebuild dependency links.
The new task array.
In-memory IGanttDatasource backed by a plain array of GanttTask objects.
Dependency links are derived automatically from each task's
dependenciesarray on construction (and whensetTasksis called).Example