Open lfk0719 opened 9 months ago
@lfk0719,
You need to call the getGanttInstance
method from the Gantt
object, note the capital G
:
Gantt.getGanttInstance()
https://docs.dhtmlx.com/gantt/desktop__multiple_gantts.html
There is a demo for Vue.js, but it uses the 3.x versions: https://github.com/DHTMLX/vue-gantt-demo
However, in the past, there was the 2.x version: https://github.com/DHTMLX/vue-gantt-demo/tree/1ce7aafbb413a54a0bf2a82974b4e8e8e86c1d27
I tried to reproduce the issue with the getGanttInstance
method, but it is working correctly.
Here is the demo:
https://files.dhtmlx.com/30d/c00315bd4ea1a8733447d0fbdaf1b188/vue+gantt-instance.zip
If that doesn't help you, please send me a ready demo with all the necessary files so that I can reproduce the issue locally.
import {gantt,Gantt} from "dhtmlx-gantt"; I use it in vue2. I want to use the method gantt.getganttinstance (). The installed version is 7.1.4, but Gantt is undefined