In the data file I have a color field, and in the ganttConfig.ts file I am leaving taskDrag: true, taskResize: true, all tasks are drag and drop. But I want to filter by color field, if the task has color! = '# 303331' then drag and drop, otherwise if the task has color = '# 303331', it will not allow drag and drop. Can you guys support me?
Here is my code. My wish is that when initially entering, all tasks will not be dragable, after clicking the "EDIT" button the tasks will be able to drag and drop, but will check in the data file with the condition that the color field = == '# 303331' will not be able to drag and drop. Can you guys support me? Thank you for your help.
I did it your way but it doesn't work, can you fix it for me through my source code below. My wish is that when initially entering, all tasks will not be dragable, after clicking the "EDIT" button the tasks will be able to drag and drop, but will check in the data file with the condition that the color field = == '# 303331' will not be able to drag and drop. Can you guys support me? Thank you for your help.