auto_scheduling
信息
此功能仅在PRO版本中可用。
Description
启用自动排程
auto_scheduling: boolean | AutoSchedulingConfig
Example
gantt.config.auto_scheduling = true;
gantt.init("gantt_here");
Default value: false
Related samples
Details
注释
此设置属于 auto_scheduling 扩展的一部分,因此请确保启用 auto_scheduling 插件。更多详情请参见 自动调度 文章。
auto_scheduling 选项可以是布尔值,也可以是对象,后者提供了更详细的自动排程控制。当使用对象时,可以配置以下内容:
- enabled - (boolean) - 用于开启或关闭自动排程,功能等同于直接设置布尔值。
- show_constraints? - (boolean) - 控制是否在甘特图中显示任务约束。
设置为
true显示约束,设置为false则隐藏。
例如,开启自动排程但保持任务约束隐藏:
gantt.config.auto_scheduling = {
enabled: true,
show_constraints: false
};
gantt.init("gantt_here");
Related API
- auto_scheduling_initial
- auto_scheduling_descendant_links
- auto_scheduling_move_projects
- auto_scheduling_project_constraint
- auto_scheduling_strict
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink
Related Guides
Change log
- 自版本 9.0 起,此配置支持定义为对象