Documentation Index
Fetch the complete documentation index at: https://mintlify.com/svar-widgets/gantt/llms.txt
Use this file to discover all available pages before exploring further.
Split tasks are a PRO feature. See licensing and trial info.
The splitTasks Prop
Enable split task support on the <Gantt> component:
| Prop | Type | Default | Description |
|---|---|---|---|
splitTasks | boolean | false | Enables rendering and editing of task segments. |
The segments Field on Tasks
A split task is defined by adding a segments array to the task object. Each segment is a partial ITask with at minimum start and end (or duration) values:
segments is present, the task’s top-level start and end span the full range from the first segment start to the last segment end.
Example: Task with Multiple Segments
Full Example
Interacting with Segments
WhensplitTasks is enabled:
- Dragging a segment moves only that segment within the row.
- Resizing a segment adjusts its individual
startorendwithout affecting other segments. - Dragging the parent task bar (in the gap between segments) moves all segments together.
- The task editor works at the segment level when a segment is the active element —
activeTaskcan be set to{ id, segmentIndex }to target a specific segment.