Skip to main content

onAfterBranchLoading

Description

If dynamic loading is enabled, fires after the task branch was loaded to the page

onAfterBranchLoading: (settings: any) => void;

Parameters

  • settings - (required) object - an object which contains the task id and request URL

Example

gantt.attachEvent("onAfterBranchLoading", function(settings){
console.log(settings.url);
});

Details

The settings object contains two properties - the id of the task and the request url:

{
taskId: 1,
url:"/data?parent_id=1"
}

This event fires only when Dynamic loading is enabled.