Skip to main content

dragMode

enables drag-n-drop in Tree

dragMode?: "target" | "source" | "both";

Example

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

Related sample: Tree. Drag Modes

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