Drag to reorder Children


#1

I would like to be able to reorder children of section by dragging them on the timeline view. Is there a current method or has someone been able to accomplish this?

Thank you for your assistance.

Jeff


#2

Hello @jwood,

By default, you can add or remove the section with the deleteSection:
https://docs.dhtmlx.com/scheduler/api__scheduler_deletesection.html
and addSection:
https://docs.dhtmlx.com/scheduler/api__scheduler_addsection.html

Unfortunately, currently, there is no built-in functionality to drag timeline sections.
You can try to implement some custom solution, to make section labels draggable(by additional CSS) and call add/removeSection methods by some conditions. Unfortunately, I don’t have any ready demo or code examples of implementation.

Here is an example of dragging div into timeline labels, which could be helpful:
http://snippet.dhtmlx.com/5/aacb74753


#3

Thank you for the guidance.