Our state of the art Gantt chart


Post by mats »

You can simply implement a custom draggable property in your Task model:

class MyTask extends TaskModel {
    get draggable() {
        return this.color !== '#303331';
    }
}

Post by ducminh1511 »

I have correctly placed the code you instructed here, but the tasks with color === '# 303331' are still dragging and dropping while I have followed you. And I have an Edit onclick event to check whether the task is editable or not. But I do not know where to attach that event ?.

Attachments
edittask_2.png
edittask_2.png (73.67 KiB) Viewed 324 times
edittask_1.png
edittask_1.png (24.09 KiB) Viewed 324 times

Post by mats »

And I have an Edit onclick event to check whether the task is editable or not. But I do not know where to attach that event ?.

Let's address one question at a time, start new threads for every question you have.

Try setting a 'debugger;' statement in the draggable getter you created to see what's going on.


Post Reply