본문으로 건너뛰기

locate

Description

지정된 HTML 이벤트에서 작업의 ID를 가져옵니다

locate: (e: Event) => string | number

Parameters

  • e - (필수) Event - 네이티브 이벤트

Returns

  • id - (string | number) - 작업 ID

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});
}
});
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.