Split tasks are a PRO feature. See licensing and trial info.
The splitTasks Prop
Enable split task support on the <Gantt> component:
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.