From fbbf467696810b7ca2ddac6de0d076af424a2ef0 Mon Sep 17 00:00:00 2001 From: shentao Date: Wed, 19 Apr 2017 18:24:26 +0800 Subject: integrated monitor and performance functions Issue-id: CLIENT-175 Change-Id: I07adc77afd9f62f615790896c9241f8430583398 Signed-off-by: shentao --- .../zTree/api/en/setting.edit.drag.prev.html | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html new file mode 100755 index 00000000..de6f0c82 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html @@ -0,0 +1,59 @@ +
+
+

Boolean / Function(treeId, treeNodes, targetNode)setting.edit.drag.prev

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

When drag one node to the target node, set whether to allow the node to be the target node's previous sibling. It is valid when [setting.edit.enable = true]

+

If the target node is root, so zTree will only trigger 'inner' and not trigger 'prev / next'.

+

This function mainly for the appropriate limit drag and drop (auxiliary arrow), it requires a combination of 'next, inner' together, to achieve full functionality.

+

Default: true

+
+
+

Boolean Format

+
+

true means: allow the node to be the target node's previous sibling.

+

false means: don't allow the node to be the target node's previous sibling.

+
+

Function Parameter Descriptions

+
+

treeIdString

+

zTree unique identifier: treeId, easy for users to control.

+

treeNodesArray(JSON)

+

A collection of the nodes which has been dragged

+

targetNodeJSON

+

JSON data object of the target node which treeNodes are draged over.

+

Return Boolean

+

return true or false

+
+

Examples of setting & function

+

1. disable to drag the node to the target node's previous sibling.

+
var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: false,
+			next: true,
+			inner: true
+		}
+	}
+};
+......
+

2. disable to drag the node to be all of the parent nodes's previous sibling.

+
function canPrev(treeId, nodes, targetNode) {
+	return !targetNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true,
+		drag: {
+			prev: canPrev,
+			next: true,
+			inner: true
+		}
+	}
+};
+......
+
+
\ No newline at end of file -- cgit 1.2.3-korg