@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Class GanttArrayDatasource<T>

    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).

    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'] },
    ]);

    Type Parameters

    • T = unknown

      Optional payload type on each task.

    Implements

    Index

    Constructors

    Methods

    • Replace all tasks and rebuild dependency links.

      Parameters

      • tasks: readonly GanttTask<T>[]

        The new task array.

      Returns void