跳到主要内容

onLinkDragMove

Description​

Fires after Gantt updates the direction line while dragging a new dependency link

onLinkDragMove: (state: LinkDragState) => void;

Parameters​

  • state.link_source_id is the source task ID.
  • state.link_target_id is the task under the pointer, or null.
  • state.link_from_start identifies the source endpoint. It is true for start, false for finish, or null if unknown.
  • state.link_to_start identifies the current target endpoint. It is true for start or false for finish.
  • state.link_landing_area indicates 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").

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.