From 928ff2eb017b4cfe2a9d775688493fdcbed5c008 Mon Sep 17 00:00:00 2001 From: seshukm Date: Fri, 20 Jan 2017 17:46:34 +0530 Subject: Client code change form GSO-GUI to OPEN-O GUI code restructured for the OPEN-O CLient. Issue-Id : CLIENT-11 Change-Id: Ib2846320c5522ca373ba7b1c12e3caa9443e5ea1 Signed-off-by: seshukm --- .../zTree/api/en/setting.edit.drag.inner.html | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html (limited to 'portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html') diff --git a/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html b/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html new file mode 100644 index 00000000..e3b84d5d --- /dev/null +++ b/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.drag.inner.html @@ -0,0 +1,60 @@ +
+
+

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

+

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 child. 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 'prev, next' together, to achieve full functionality.

+

Default: true

+
+
+

Boolean Format

+
+

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

+

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

+
+

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.

+

If the treeNodes will be root node, the targetNode = null

+

Return Boolean

+

return true or false

+
+

Examples of setting & function

+

1. disable to drag the node to the target node's inner.

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

2. disable to drag the node to be root node's child.

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