onLightboxChange
Description
Fires when the structure of the lightbox is changed
onLightboxChange: (old_type: string, new_type: string) => void;
Parameters
old_type- (required) string - the name of the initial lighbox's structurenew_type- (required) string - the name of the new lighbox's structure
Example
gantt.attachEvent("onLightboxChange", function(old_type, new_type){
if(new_type == "milestone"){
alert("You have changed the type of your task to 'milestone'")
}
});