onLinkDragMove
Description
Fires after Gantt updates the direction line while dragging a new dependency link
onLinkDragMove: (state: LinkDragState) => void;
Parameters
state.link_source_idis the source task ID.state.link_target_idis the task under the pointer, ornull.state.link_from_startidentifies the source endpoint. It istruefor start,falsefor finish, ornullif unknown.state.link_to_startidentifies the current target endpoint. It istruefor start orfalsefor finish.state.link_landing_areaindicates whether the pointer is over a target endpoint. A task bar can also be a valid drop target.
Details
The event cannot be canceled. For expensive processing such as a scheduling preview, throttle updates or limit them to one per animation frame. The state has the same shape as the result of getState("linksDnD").
Related API
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.