In the VTable Gantt chart, tasks are divided into three predefined types, each with different visual representations and characteristics. The task type is specified by the type property in the data item (the value corresponds to the value in the TaskType enumeration).
Normal Task
The default task type is TaskType.TASK. These tasks can be dragged and resized, and their duration and progress are not affected by their sub-tasks.
Can have one parent task and an arbitrary number of sub-tasks
Can be dragged and resized
Does not depend on sub-tasks, so even if their sub-tasks are dragged, the task's duration and progress will not change
Can be displayed on project tasks
Project Task
Project task (TaskType.PROJECT) is a special type of task whose start time depends on the earliest sub-task start time, and the end time depends on the latest sub-task end time. The duration of the project task depends on its sub-tasks and will change accordingly.
Can have one parent task and an arbitrary number of sub-tasks
Cannot be dragged and resized
Depends on sub-tasks, if the user drags the sub-tasks, the project task will correspondingly adjust its duration
Ignores the startDate and endDate properties
The progress of the project is independently specified and does not depend on the sub-tasks (if automatic calculation is needed, it needs to be implemented by oneself)
Milestone
Milestone (TaskType.MILESTONE) is a task with zero duration, typically used to mark important dates in projects. Milestones are represented by a diamond icon in the Gantt chart.
In the Project_Sub_Tasks_Inline mode, the expansion/folding behavior of project tasks can be controlled by the projectSubTasksExpandable configuration:
When projectSubTasksExpandable is set to true (default value), project tasks can be expanded/collapsed. When collapsed, sub-tasks will be displayed within the project task row; when expanded, sub-tasks will be displayed in a regular tree structure.
When projectSubTasksExpandable is set to false, project tasks will not have an expand/collapse icon, and sub-tasks will be displayed within the project task row.