跳到主要内容

onLinkDragEnd

Description​

Fires when dragging a new dependency link ends, including drops that do not create a link

onLinkDragEnd: (state: LinkDragState) => void;

Parameters​

  • state is the final link drag state, with the source and target task IDs, endpoint flags and landing-area flag.

Details​

It fires before Gantt validates the drop or creates a link. Use it to clear temporary UI such as a scheduling preview. Returning false has no effect. Use onLinkCreated to cancel creating a link.

Change log​

  • Added in v10.1.
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.