UI component DND

I have tried to implement a DND mechanism for ui.form elements and have found out that all of the current Webix’s DND functionality is implemented around HTML/Template elements.

I would like to request a future feature that any ui.component (inside of a ui.layout) could easily have a DND support.

Also, if its possible to provide an example of the way I can currently achieve DND support for ui.form items (ui.text, ui.textarea…) - I would be very grateful.

Thanks in advance.

I have found a workaroud using activeContent and dataview, but it would be good to at least add an example/description of this.

It is quite easy to make any view draggable, but it will not result in UI reordering, only visual part of d-n-d can be achieved with low efforts.

webix.DragControl.addDrag($$("t1").$view);

http://webix.com/snippet/92ac1860

http://docs.webix.com/api__dragcontrol_adddrop.html

http://docs.webix.com/api__dragcontrol_adddrag.html