isReadonly

checks whether the specified task or link is read-only

boolean isReadonly(string|number id);

Parameters

idstring|numberthe task/link id

Returns

booleantrue, if such a task/link is readonly. Otherwise, false

Example

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

See also
Back to top