timeline_placeholder

타임라인이 비어 있을 때 배경 그리드를 표시합니다

boolean timeline_placeholder;

Example

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

Related samples

Details

타임라인에 작업이 로드되지 않았을 때 배경 그리드가 표시됩니다:

background grid

작업이 포함된 행이 타임라인 전체를 덮지 않을 경우에도 배경 그리드가 나타납니다:

background grid

배경 그리드의 컬럼과 셀에 강조를 추가하려면 timeline_cell_class 템플릿을 사용하세요:

gantt.templates.timeline_cell_class = function (task, date) {
    if (!gantt.isWorkTime({ date: date, task: task })) {
        return "weekend";
    }
};

배경 행의 경우, 템플릿에 임시 작업 객체가 전달됩니다. 이 객체는 id를 통해 식별할 수 있습니다:

if(task.id === "timeline_placeholder_task"){
    ...
}
See also
Change log

v8.0에 추가됨

Back to top