View as Markdown

API reference: @salmonui/gantt

GanttTaskFieldsinterface

import type { GanttTaskFields } from '@salmonui/gantt';
interface GanttTaskFields {
    readonly id?: string;
    readonly title?: string;
    readonly start?: string;
    readonly end?: string;
    readonly duration?: string;
    readonly durationUnit?: string;
    readonly progress?: string;
    readonly parentId?: string;
    readonly children?: string;
    readonly predecessors?: string;
    readonly milestone?: string;
    readonly notes?: string;
    readonly baselineStart?: string;
    readonly baselineEnd?: string;
    readonly baselineDuration?: string;
    readonly resources?: string;
    readonly work?: string;
    readonly taskType?: string;
    readonly manual?: string;
    readonly segments?: string;
    readonly indicators?: string;
    readonly expanded?: string;
    readonly constraintType?: string;
    readonly constraintDate?: string;
    readonly calendar?: string;
    readonly className?: string;
}

taskFields: the row property that holds each task role. Defaults are the role names.

GanttTaskFields members (26)
NameSignatureDescription
idoptionalreadonly id?: string;
titleoptionalreadonly title?: string;
startoptionalreadonly start?: string;
endoptionalreadonly end?: string;
durationoptionalreadonly duration?: string;
durationUnitoptionalreadonly durationUnit?: string;
progressoptionalreadonly progress?: string;
parentIdoptionalreadonly parentId?: string;

Flat data: the parent task id.

childrenoptionalreadonly children?: string;

Nested data: the child task array. Default 'children' when parentId is not mapped.

predecessorsoptionalreadonly predecessors?: string;
milestoneoptionalreadonly milestone?: string;
notesoptionalreadonly notes?: string;
baselineStartoptionalreadonly baselineStart?: string;
baselineEndoptionalreadonly baselineEnd?: string;
baselineDurationoptionalreadonly baselineDuration?: string;
resourcesoptionalreadonly resources?: string;
workoptionalreadonly work?: string;
taskTypeoptionalreadonly taskType?: string;
manualoptionalreadonly manual?: string;
segmentsoptionalreadonly segments?: string;
indicatorsoptionalreadonly indicators?: string;
expandedoptionalreadonly expanded?: string;
constraintTypeoptionalreadonly constraintType?: string;
constraintDateoptionalreadonly constraintDate?: string;
calendaroptionalreadonly calendar?: string;
classNameoptionalreadonly className?: string;