본문으로 건너뛰기

onScaleAdjusted

Description

스케일이 다시 렌더링되어 모든 작업이 완전히 보이도록 할 때 발생하는 이벤트

onScaleAdjusted: () => void;

Example

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)}`);
});

Details

참고: 이 이벤트는 fit_tasks 속성이 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.