스케일이 다시 렌더링되어 모든 작업이 완전히 보이도록 할 때 발생하는 이벤트
gantt.attachEvent("onScaleAdjusted", function(){
const min = gantt.getState().min_date;
const max = gantt.getState().max_date;
const to_str = gantt.templates.task_date;
return gantt.message(`Scale shows days from ${to_str(min)}
to ${to_str(max)}`);
});
이 이벤트는 fit_tasks 속성이 활성화되어 있을 때(값이 true로 설정된 경우)에만 발생한다는 점을 기억하세요.