auto_scheduling_move_projects
信息
本功能仅在 PRO 版中可用。
警告
该属性在 v9.1 版本中已废弃,请改用 gantt.config.auto_scheduling 的 move_projects 属性。
Description
定义是否会移动整个项目(请参见下方的详细信息)
auto_scheduling_move_projects: boolean
Example
gantt.config.auto_scheduling_move_projects = true;
gantt.init("gantt_here");
默认值: true
Related samples
Details
注释
此配置在 auto_scheduling 扩展中定义,因此需要启用 auto_scheduling 插件。请在 Auto Scheduling 文章中阅读更多细节。
默认情况下(属性设置为 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;
Related API
- auto_scheduling
- auto_scheduling_descendant_links
- auto_scheduling_initial
- auto_scheduling_project_constraint
- auto_scheduling_strict
- auto_scheduling_use_progress
- findCycles
- isCircularLink
- onAfterAutoSchedule
- onAfterTaskAutoSchedule
- onBeforeAutoSchedule
- onBeforeTaskAutoSchedule
- onCircularLinkError
- onAutoScheduleCircularLink
Related Guides
Change log
- 该属性在 v9.1 中已被弃用
- 在版本 4.1 中新增
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.