跳到主要内容

ignore_time

Description

在时间刻度中隐藏一个时间单位

ignore_time: GanttCallback

Example

// 0 代表星期天,6 代表星期六
gantt.ignore_time = function(date){
if(date.getDay() == 0 || date.getDay() == 6)
return true;
};

Details

ignore_time 方法是一个接收单元格日期作为参数的函数。要隐藏一个时间单位,请对它返回 true

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.