svelte-gantt icon indicating copy to clipboard operation
svelte-gantt copied to clipboard

Drag in drop in row

Open dgastudio opened this issue 2 years ago • 1 comments

Hi,

Is it possible to allow dragging only within one row?

i mean allow only horizontal drag, not vertical

Thanks

dgastudio avatar Sep 28 '22 12:09 dgastudio

Hello, yes it is possible manually using the tasks event api :

gantt.api.tasks.on.changed(function([data]){
           if(data.targetRow.model.id != data.sourceRow.model.id){
              handle your exception here
           }
        })

If you want a parameter in the gantt options to never allow dragNdrop in other row, it doesn't exist for now.

V-Py avatar Oct 03 '22 05:10 V-Py

Hello, did I answer your interrogation ? If so or no answer in the next week I'll close this issue

V-Py avatar Oct 18 '22 16:10 V-Py

yes, thank you!

dgastudio avatar Oct 18 '22 17:10 dgastudio