Перейти к основному содержимому

onAfterTaskDrag

Description

Срабатывает после того, как пользователь закончил перетаскивать и отпустил кнопку мыши

onAfterTaskDrag: (id: string | number, mode: string, e: Event) => void;

Parameters

  • id - (required) string | number - идентификатор задачи
  • mode - (required) string - режим drag-and-drop ("resize", "progress", "move", "ignore")
  • e - (required) Event - нативный объект события

Example

gantt.attachEvent("onAfterTaskDrag", function(id, mode, e){
//любая ваша логика здесь
});

Details

Событие срабатывает, когда пользователь перетаскивает задачу в области таймлайна.

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.