You can simply implement a custom draggable property in your Task model:
class MyTask extends TaskModel {
get draggable() {
return this.color !== '#303331';
}
}
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 ?.
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.