Перейти к основному содержимому

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.