a factory object that can be used to create new instances of dhtmlxGantt chart
// can be used as a global object
const myGantt = Gantt.getGanttInstance();
// or imported from `dhtmlxgantt.js` as a module
import { Gantt } from 'dhtmlx-gantt';
...
const myGantt = Gantt.getGanttInstance();
This functionality is available in the Gantt PRO version under the Commercial (since October 6, 2021), Enterprise and Ultimate licenses
Example:
const myGantt = Gantt.getGanttInstance();
When no longer needed, an instance of gantt can be destroyed using the destructor() method of the instance, for example:
const myGantt = Gantt.getGanttInstance();
...
myGantt.destructor();
Back to top