Layout::$container undefined after changing the time range

http://snippet.dhtmlx.com/40d585d2d

I’ve found this error while trying to create a minimal example, during basically the same operation in my real application I get self.$gantt not defined in resouce_store_mixin.js _linkToTaskStore()

Hello,
You need to specify the container or its ID to initialize Gantt there:
https://docs.dhtmlx.com/gantt/desktop__initializing_gantt_chart.html
https://docs.dhtmlx.com/gantt/api__gantt_init.html

In the snippet, you need to put gantt.init('gantt_here'); command to make it work:
http://snippet.dhtmlx.com/0010a3f14

1 Like

Ah yes, that did the trick. Thank you