定义在调度过程中是否整个项目都会被移动(详情见下文)
Available only in PRO Edition
gantt.config.auto_scheduling_move_projects = true;
gantt.init("gantt_here");
此功能仅在PRO版本中可用。
此设置是auto_scheduling 扩展的一部分,因此请确保启用 auto_scheduling 插件。更多信息请参见 自动调度 文章。
4.1版本新增
默认情况下(当此属性设置为 true 时),整个项目会在自动调度时整体移动。这意味着所有任务相对于彼此以及项目开始时间的顺序保持不变。
如果 auto_scheduling_move_projects 设置为 false,自动调度将调整项目内的各个任务。结果是某些任务会移动,而其他任务保持不动。
注意,在使用约束调度(gantt.config.auto_scheduling_compatibility = false)时,auto_scheduling_move_projects 设置仅当严格模式关闭时才生效:
gantt.config.auto_scheduling_compatibility = false;
gantt.config.auto_scheduling_strict = false;