Skip to main content

dragCopy

defines that an item is copied to a target during drag-n-drop

dragCopy?: boolean;

Example

var treeSource = new dhx.Tree("tree-source", {dragMode: "source", dragCopy: true});var treeTarget = new dhx.Tree("tree-target", {dragMode: "target", dragCopy: true});

Related sample: Tree. Copy Dragged Item

note

Don't forget to enable drag-n-drop via the dragMode property to use dragCopy.