locate

주어진 HTML 이벤트를 기반으로 작업의 id를 가져옵니다

string | number locate(Event e);
eEvent네이티브 이벤트 객체
string | number작업의 식별자

Example

gantt.$container.addEventListener("mouseover", function(event){
    const taskId = gantt.locate(event);
    if(gantt.isTaskExists(taskId)){
       gantt.message({
         id:1,
         text:"Mouse over " + gantt.getTask(taskId).text});
    }
});

See also
Back to top