removes the specified layer related to a task
layerId | string | number | a DOM element that will be displayed in the layer |
Available only in PRO Edition
var layer_id = gantt.addTaskLayer(function draw_deadline(task) {
if (task.deadline) {
var el = document.createElement('div');
el.className = 'deadline';
var sizes = gantt.getTaskPosition(task, task.deadline);
el.style.left = sizes.left + 'px';
el.style.top = sizes.top + 'px';
el.setAttribute('title', gantt.templates.task_date(task.deadline));
return el;
}
return false;
});
//...
gantt.removeTaskLayer(layer_id);gantt.render();
This functionality is available in the PRO edition only.