Predecessor (links) editing inside lightbox

Howdy!
I want to add / edit the predecessors of a task in its lightbox, the same way it’s done in inline editor in this example (https://docs.dhtmlx.com/gantt/desktop__inline_editing.html#typesofeditors).
Is it possible?

Hi Diego,

It is possible to add/edit the predecessors of a task in its lightbox. You should create two more sections in the lightbox for link types and predecessors. To catch the event of lightbox saves use onLightboxSave:

https://docs.dhtmlx.com/gantt/api__gantt_onlightboxsave_event.html

If the condition is met and there is no such link, you create a new link using method addLink:

https://docs.dhtmlx.com/gantt/api__gantt_addlink.html

Here is a demo:

http://snippet.dhtmlx.com/13586c16b