frappe-gantt-react icon indicating copy to clipboard operation
frappe-gantt-react copied to clipboard

dragged task event

Open RahulShahUI opened this issue 5 years ago • 7 comments

on drag task i'm getting all dependent along with dragged task, how to differentiate that which task i have dragged and which are the dependent which are dragged along with the main task.

RahulShahUI avatar Oct 17 '19 08:10 RahulShahUI

Hey @RahulShahUI

Actually the events are just mapped to the original Frappé Gantt library. It doesn't have a dragged event.

mohammed-io avatar Oct 17 '19 08:10 mohammed-io

thank you @mohammed-io for the reply.

Is there any other way to identify the dragged task.

RahulShahUI avatar Oct 17 '19 08:10 RahulShahUI

Maybe it has no dependencies?

mohammed-io avatar Oct 17 '19 09:10 mohammed-io

https://codesandbox.io/s/epic-greider-vvrv1

please check above Codesandbox, i am getting all dependent tasks in console when i drag "task1", how can i know that which is the main task which i have dragged and which are the dependent which dragged due to main task.

RahulShahUI avatar Oct 17 '19 10:10 RahulShahUI

can i disable dragging the event from the timeline?

RahulShahUI avatar Oct 23 '19 06:10 RahulShahUI

@RahulShahUI It has only a click event, not a dragging event, it's mapped from the original library.

mohammed-io avatar Oct 23 '19 09:10 mohammed-io

thank you @mohammed-io i just wanted to know if we can prevent dragging for some records, but i think this feature is not available.

RahulShahUI avatar Oct 23 '19 09:10 RahulShahUI