onBeforeAutoSchedule

在自动排程开始之前触发

boolean onBeforeAutoSchedule(string|number taskId);
taskIdstring|number根任务的ID
boolean决定事件的默认操作是否继续执行(true)或被取消(false

Available only in PRO Edition

Example

gantt.attachEvent("onBeforeAutoSchedule",function(taskId){  
    // 在这里添加你的自定义逻辑  
    return true;  
});

Related samples

Details

此功能仅在PRO版本中可用。

此事件是auto_scheduling扩展的一部分,因此请确保已启用auto_scheduling插件。更多信息请参见自动调度文档。

此事件可以被阻止。返回false将停止后续处理。

See also
Back to top