IConfig interface defines all configurable properties of the <Gantt> component. Pass these as props directly on the component.
TypeScript definition
Data props
Array of custom task type definitions. Each entry has
{ id: TID, label: string }. The built-in types are task, summary, and milestone.Array of task IDs that are initially selected. Supports multi-selection.
ID of the task whose editor panel is open, or an object specifying both the task ID and a segment index for split tasks.
Display props
Array of scale row configurations that define the time header. See
IScaleConfig.Array of grid column definitions. Pass
false to hide the grid entirely. See IGanttColumn.Explicit start date of the visible chart range. When omitted and
autoScale is true, the range is derived from task dates.Explicit end date of the visible chart range.
Width in pixels of a single
lengthUnit cell in the chart.Height in pixels of each task row.
Height in pixels of each scale header row.
Array of vertical marker lines to display on the chart. Each marker has
{ start: Date, text?: string, css?: string }. PRO feature.Behavior props
The time unit that one chart cell represents. Must be less than or equal to the smallest
scales unit.The unit used for task
duration values and for lag in links.When
true, the chart range is automatically calculated to fit all task dates. Overrides start and end when both are provided.Enables zoom on mouse-wheel scroll. Pass
true for defaults or an IZoomConfig object for custom zoom levels.PRO feature props
The following props require a PRO license. They are silently ignored in the Community edition.
Enables the undo/redo history stack. Use
api.exec("undo", {}) and api.exec("redo", {}) to navigate history.Shows a separate area for tasks without scheduled dates (
unscheduled: true).Renders baseline bars using
base_start / base_end fields on tasks.Displays rollup bars inside summary tasks.
"all" shows all children; "closest" shows only direct children.Highlights the critical path on the chart.
"strict" requires zero float; "flexible" allows minor slack.Auto-scheduling configuration.
{ type: "forward", auto: boolean }. When auto: true, tasks are rescheduled automatically on dependency changes.Summary task behavior:
{ autoProgress: boolean, autoConvert: boolean }. When autoProgress is true, parent progress is calculated from children. When autoConvert is true, a task with children is automatically converted to a summary.Renders slack (float) bars alongside tasks to show scheduling flexibility.
Enables split task rendering using the
segments field on tasks.A
Calendar instance defining working days and hours. Used for scheduling and duration calculations.Explicit project start date used as the lower bound for auto-scaling.
Explicit project end date used as the upper bound for auto-scaling.
Component-only props
The following props are available on the<Gantt> Svelte component but are not part of IConfig.
Callback invoked after the component mounts. Receives the
IApi instance. Use this to attach event listeners, interceptors, and data providers.Disables all editing interactions — dragging, resizing, and in-grid editing.
Controls cell border rendering.
"column" shows vertical borders only; "full" shows a full grid.Function returning a CSS class for a given date cell — used to highlight weekends, holidays, etc.
A custom Svelte component rendered inside each task bar. Receives
data (the task object) and api.