getTaskNode

returns the HTML element of the task bar

HTMLElement getTaskNode(string| number id);

Parameters

idstring| numberthe task id

Returns

HTMLElementthe HTML element of the task bar

Example

gantt.addTask({
    id:10,
    text:"Task #5",
    start_date:"02-09-2013",
    duration:28
}, "project_2");
 
gantt.getTaskNode(10);//-><div task_id=​"2" class=​"gantt_task_line" ​…​​>​​…​</div>​

See also
Back to top