Is it possible to set tasks relationships in lightbox?


#1

Hello,
I want to add a section in the lightbox in order to specify the FF, FS, SF and SS relations between the tasks.
Is it possible?
Thank you


#2

Hello Ali,
Yes, you can add a custom lightbox section and show any HTML elements there:
https://docs.dhtmlx.com/gantt/desktop__custom_editor.html
Here is an example:
https://snippet.dhtmlx.com/5/b80782d02

To create a link between tasks, you need to specify the source(a task from which the link starts), target (a task where the link goes) and type parameters in the createLink method:
https://docs.dhtmlx.com/gantt/desktop__crud_dependency.html

Unfortunately, I don’t have a ready example, you need to manually implement it.