Перейти к основному содержимому

Gantt

информация

This functionality is available in the Gantt PRO version under the Commercial (since October 6, 2021), Enterprise and Ultimate licenses

Description

Фабрика объектов, которая может использоваться для создания новых экземпляров диаграммы dhtmlxGantt

Gantt: object

Example

// 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();

Methods

  • getGanttInstance(ganttConfig) - creates a new instance of dhtmlxGantt. Takes the following parameter:

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();
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.