Function(event, treeId, treeNodes)setting.callback.onDragMove

Overview[ depends on jquery.ztree.exedit js ]

Used to capture the drag-move event when drag & drop node.

Mainly used to capture the DOM which the nodes was drag in.

Default: null

Function Parameter Descriptions

eventjs event Object

event Object

treeIdString

zTree unique identifier: treeId, the tree is what the treeNodes are belong to, easy for users to control.

treeNodesArray(JSON)

A collection of the nodes which will be dragged

Examples of setting & function

1. When drag nodes, output the target dom.

function zTreeOnDragMove(event, treeId, treeNodes) {
	console.log(event.target);
};
var setting = {
	callback: {
		onDragMove: zTreeOnDragMove
	}
};
......