View as Markdown

API reference: @salmonui/gantt

GanttTaskInfointerface

import type { GanttTaskInfo } from '@salmonui/gantt';
interface GanttTaskInfo {
    readonly id: RowId;
    readonly parentId: RowId | null;
    readonly level: number;
    readonly start: Date | null;
    readonly end: Date | null;
    readonly duration: number;
    readonly durationUnit: DurationUnit;
    readonly progress: number;
    readonly milestone: boolean;
    readonly parent: boolean;
    readonly manual: boolean;
    readonly unscheduled: boolean;
    readonly work: number;
    readonly wbs: string;
    readonly critical: boolean;
    readonly totalFloat: number;
    readonly predecessors: readonly Dependency[];
    readonly segments: readonly {
        readonly start: Date;
        readonly end: Date;
    }[] | null;
}

Computed task information (getTaskInfo).

GanttTaskInfo members (18)
NameSignatureDescription
idreadonly id: RowId;
parentIdreadonly parentId: RowId | null;
levelreadonly level: number;
startreadonly start: Date | null;
endreadonly end: Date | null;
durationreadonly duration: number;
durationUnitreadonly durationUnit: DurationUnit;
progressreadonly progress: number;
milestonereadonly milestone: boolean;
parentreadonly parent: boolean;
manualreadonly manual: boolean;
unscheduledreadonly unscheduled: boolean;
workreadonly work: number;
wbsreadonly wbs: string;
criticalreadonly critical: boolean;
totalFloatreadonly totalFloat: number;

Total float in hours of working time (valid with criticalPath).

predecessorsreadonly predecessors: readonly Dependency[];
segmentsreadonly segments: readonly { readonly start: Date; readonly end: Date; }[] | null;