locate
Description
Rufen Sie die ID einer Aufgabe basierend auf dem übergebenen HTML-Event ab
locate: (e: Event) => string | number
Parameters
e- (required) Event - das native Event-Objekt
Returns
id- (string | number) - die Kennung der Aufgabe
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});
}
});
Related API
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.