跳到主要内容

round_dnd_dates

Description

启用将任务的开始和结束日期四舍五入到最近的刻度标记

round_dnd_dates: boolean

Example

gantt.config.round_dnd_dates = false;
gantt.init("gantt_here");

Default value: true

Details

如果您禁用该属性,Gantt 将把拖动任务的开始和结束日期四舍五入到最近的小时,而不是最近的刻度标记。在这种情况下,您可以使用 time_step 属性来配置拖动任务的步进。请参见示例:

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.