task_unscheduled_time
Description
指定未计划任务的日期
task_unscheduled_time: (task: Task) => string | void;
Parameters
task- (required) Task - 任务对象
Returns
text- (string | void) - 将在显示日期值的grid列中渲染的HTML文本
Example
gantt.templates.task_unscheduled_time = function(task){
return "";
};
Related samples
Details
默认情况下,返回一个空字符串。
当任务通过在其配置对象中设置 unscheduled:true 属性被标记为未计划时,所有日期字段将显示为空行。
请查看下面的示例:
注释
如果需要为未计划任务显示某些日期,可以使用 date_grid 模板来实现。
Related API
Related Guides
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.