This sample demonstrates the split tasks support in the Gantt Chart. This support allows an interruption in the task due to circumstances such as the occurrence of an unplanned event or reprioritization of already planned events. When a task is interrupted due to unexpected situations, the pending work can be split into segments and resumed at a different date.
The split tasks can be called the segments of a task. A task can be split into any number of segments with a minimum of one time unit cell. Segments can be defined in the taskFields.segments property. Segments can be created or merged by two ways: Using Edit Dialog and Context Menu. A task must have a duration of minimum two time unit cells in order to be split. Similarly, milestone tasks or parent tasks cannot be split into segments. Injecting Module: Gantt component features are segregated into individual feature-wise modules. To use selection feature, inject the Selection module using the Gantt.Inject(Selection) method. To use edit feature, inject the Edit module using the Gantt.Inject(Edit) method. To use markers feature, inject the DayMarkers module using the Gantt.Inject(DayMarkers) method. To use toolbar feature, inject the Toolbar module using the Gantt.Inject(Toolbar) method. To use context menu feature, inject the ContextMenu module using the Gantt.Inject(ContextMenu) method. More information on the Essential® JS2 Gantt Chart can be found in this documentation section.