Zum Hauptinhalt springen

locate

Description

Erhält die ID einer Aufgabe aus dem angegebenen HTML-Ereignis

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

Parameters

  • e - (erforderlich) Event - ein natives Event

Returns

  • id - (string | number) - die ID 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});
}
});
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.