mohammed-io / frappe-gantt-react

A Wrapper for the awesome Frappe Gantt library
70 stars 62 forks source link

dragged task event #4

Open RahulShahUI opened 4 years ago

RahulShahUI commented 4 years ago

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.

mohammed-io commented 4 years ago

Hey @RahulShahUI

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

RahulShahUI commented 4 years ago

thank you @mohammed-io for the reply.

Is there any other way to identify the dragged task.

mohammed-io commented 4 years ago

Maybe it has no dependencies?

RahulShahUI commented 4 years ago

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 commented 4 years ago

can i disable dragging the event from the timeline?

mohammed-io commented 4 years ago

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

RahulShahUI commented 4 years ago

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.