а

Add Task in Timeline


#1

Hello,

i need to open the pop window to add a task on click in timeline. Is that possible?

And i need to open the same window when i click in some resource. Is that possible?

Thx


#2

Hello,

i need to open the pop window to add a task on click in timeline. Is that possible?

Gantt has the click and drag extension that allows creating tasks by “drawing” a bar in the timeline:
https://docs.dhtmlx.com/gantt/desktop__advanced_dnd.html#creatingtaskswithdragndrop
https://docs.dhtmlx.com/gantt/samples/02_extensions/24_click_drag.html

And there is the onEmptyClick event handler that you can use to create tasks by clicking in the timeline cells:
https://docs.dhtmlx.com/gantt/api__gantt_onemptyclick_event.html
http://snippet.dhtmlx.com/a48ecce73


And i need to open the same window when i click in some resource. Is that possible?

There is no built-in feature to do that. But you can use the same approach with the onEmptyClick event handler and implement a custom solution.
Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/3034750c0


#3

Thank you very much!! :grinning: