onBeforeBranchLoading
Description
동적 로딩이 활성화된 경우, 사용자가 작업 브랜치를 확장한 직후 로딩 프로세스가 시작되기 전에 이 이벤트가 발생합니다.
onBeforeBranchLoading: (settings: any) => boolean;
Parameters
settings- (required) object - 작업 ID와 요청 URL을 포함합니다.
Returns
result- (boolean) -false를 반환하면 동적 로딩이 중단되고 서버로의 요청이 전송되지 않습니다.
Example
gantt.attachEvent("onBeforeBranchLoading", function(settings){
var task = gantt.getTask(settings.taskId);
config.url += "&value=" + encodeURIComponent(task.text);
return true;
});