From 21d72c4a80fe2937d0c4ddd20624b27adbcd989b Mon Sep 17 00:00:00 2001 From: lizi00164331 Date: Mon, 7 Aug 2017 11:39:39 +0800 Subject: Upload the ESR GUI seed code Issue-ID: AAI-68 Change-Id: Ia50ce0570c2fabecd77199d4e8454f56fe587c4e Signed-off-by: lizi00164331 --- .../api/en/setting.callback.beforeEditName.html | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html new file mode 100644 index 0000000..8772a3e --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html @@ -0,0 +1,38 @@ +
+
+

Function(treeId, treeNode)setting.callback.beforeEditName

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Used to capture the event before click edit button, zTree based on return value to determine whether to allow to edit the name.

+

This callback is used to capture the event which edit button is clicked, then trigger the custom editing operation.

+

Default: null

+
+
+

Function Parameter Descriptions

+
+

treeIdString

+

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

+

treeNodeJSON

+

JSON data object of the node which will be edited name.

+

Return Boolean

+

return true or false

+

If return false, the node will not be able to edit the name.

+
+

Examples of setting & function

+

1. disable to edit the parent node's name

+
function zTreeBeforeEditName(treeId, treeNode) {
+	return !treeNode.isParent;
+}
+var setting = {
+	edit: {
+		enable: true
+	},
+	callback: {
+		beforeEditName: zTreeBeforeEditName
+	}
+};
+......
+
+
\ No newline at end of file -- cgit 1.2.3-korg