You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/assets/guide/en/gantt/introduction.md
+7
Original file line number
Diff line number
Diff line change
@@ -151,11 +151,18 @@ Through the `dependency.linkCreatable` configuration item, you can set whether t
151
151
152
152
#### Creation Schedule
153
153
154
+
Configuration taskBar. ScheduleCreatable to true.
155
+
154
156
If there is no field data for the task date in the original data, you can create a schedule to specify a start time and end time for the task. By default, when you hover over a grid without date data, a button to add a schedule will appear.
155
157
156
158
The button style can be configured via `taskBar.scheduleCreation.buttonStyle`.
157
159
158
160
If the current configuration does not meet your needs, you can also customize the display effect of the creation schedule through the `taskBar.scheduleCreation.customLayout` configuration item.
161
+
**Note: Different Gantt chart instances have different capabilities to create schedules.**
162
+
163
+
When `tasksShowMode` is `TasksShowMode.Tasks_Separate` or `TasksShowMode.Sub_Tasks_Separate`, each piece of data has a corresponding row position display, but when there is no `startDate` and `endDate` field set in the data, a create button will appear when the mouse hovers over the row, and clicking the button will create a schedule and display the task bar.
164
+
165
+
When `tasksShowMode` is `TasksShowMode.Sub_Tasks_Inline`, `TasksShowMode.Sub_Tasks_Arrange`, or `TasksShowMode.Sub_Tasks_Compact`, a create button will be displayed when the mouse hovers over the blank area, and clicking the button will trigger the event `GANTT_EVENT_TYPE.CREATE_TASK_SCHEDULE`, but it will not actually create a task schedule. The user needs to listen for this event and create a schedule update data according to business needs.
0 commit comments