Gantt APIEventsonDestroyOn this pageonDestroy Description Called after gantt has been cleared by the destructor method onDestroy: () => void;Examplegantt.attachEvent("onDestroy", function(){ alert("free custom resources");});gantt.destructor();Related API destructor