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

    A pure-CSS Gantt chart component driven by an IGanttDatasource.

    Renders a scrollable timeline with task bars, optional progress overlays, milestone diamonds, a "today" marker line, and dependency connector arrows.

    The component is content-agnostic — all data comes from the datasource.

    <ui-gantt-chart
    [datasource]="ds"
    [viewMode]="'week'"
    [showToday]="true"
    (taskClicked)="onTask($event)"
    />

    Type Parameters

    • T = unknown
    Index

    Constructors

    Properties

    ariaLabel: InputSignal<string> = ...

    Accessible label for the chart region.

    datasource: InputSignal<IGanttDatasource<T>> = ...

    Datasource providing tasks and dependency links.

    dateRange: Signal<{ end: Date; start: Date }> = ...

    Computed date range with padding.

    dependencies: Signal<readonly GanttDependencyLink[]> = ...

    All dependency links from the datasource.

    groupGridColumns: Signal<string> = ...

    CSS grid-template-columns for the top-level group header.

    headerGridColumns: Signal<string> = ...

    CSS grid-template-columns for the timeline header columns.

    paddingDays: InputSignal<number> = ...

    Number of padding days before the first and after the last task.

    palette: InputSignal<readonly string[]> = ...

    Custom colour palette for task bars.

    rowHeight: InputSignal<number> = ...

    Row height in pixels.

    rows: Signal<readonly GanttRow<T>[]> = ...

    Processed rows for template rendering.

    scrollLeft: WritableSignal<number> = ...

    Scroll-left position for syncing the header and body.

    showTaskList: InputSignal<boolean> = ...

    Whether to show the task-list sidebar with task names.

    showToday: InputSignal<boolean> = ...

    Whether to show the "today" marker line.

    taskClicked: OutputEmitterRef<GanttTask<T>> = ...

    Emits when a task bar is clicked.

    taskListWidth: InputSignal<number> = ...

    Width of the task-list sidebar in pixels.

    tasks: Signal<readonly GanttTask<T>[]> = ...

    All tasks from the datasource.

    timeline: Signal<TimelineInfo> = ...

    Full timeline metadata (columns, groups, total days).

    todayPosition: Signal<number | null> = ...

    Percentage position of the "today" marker, or null.

    viewMode: InputSignal<GanttViewMode> = ...

    Timeline granularity.

    Methods

    • Sync horizontal scroll between header and body.

      Parameters

      • event: Event

      Returns void

    • Handle task bar click.

      Parameters

      Returns void