isTaskExists

checks whether the specified task exists

boolean isTaskExists(string| number id);

Parameters

idstring| numberthe task id

Returns

booleantrue, if such a task exists. Otherwise, false

Example

gantt.addTask({
    id:10,
    text:"Task #5",
    start_date:"02-09-2013",
    duration:28
}, "project_2");
 
gantt.isTaskExists(10); // ->true

Back to top