How can I get the updated lag

Hello, I would like to ask how can I get the delay between tasks with dependency links when I move a task

Hello,
If you want to set the link lag parameter after moving a task, there is no built-in way to do that. You need to implement a custom solution by using the Gantt API and Javascript.
You need to use the onAfterTaskDrag event handler and obtain all task links:
https://docs.dhtmlx.com/gantt/api__gantt_onaftertaskdrag_event.html
Then you need to update each link with the FS or SS type.
Here is an example of how it might be implemented:
http://snippet.dhtmlx.com/3e28b85a5