dragMode

enables drag-n-drop in Tree

string dragMode;

Example

var tree = new dhx.Tree("tree_container", { 
    dragMode:"source"
});

Related samples

Details

Drag-n-drop can work in three modes:

  • "target" - a tree takes items from other trees, while its items can't be dragged out of it
  • "source" - a tree allows dragging its items out and can't take items from other trees
  • "both" - a tree both takes items from other trees and allows dragging its items out as well
See also
Back to top