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.showRemoveBtn.html | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100755 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html (limited to 'common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html') diff --git a/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html new file mode 100755 index 00000000..f0f1fe15 --- /dev/null +++ b/common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html @@ -0,0 +1,50 @@ +
+
+

Boolean / Function(treeId, treeNode)setting.edit.showRemoveBtn

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

Set to show or hide the remove button. It is valid when [setting.edit.enable = true]

+

When you click the remove button:

+

1. zTree will trigger the setting.callback.beforeRemove callback, and you can decide whether to allow delete.

+

2. If you don't set the 'beforeRemove' or the 'beforeRemove' callback return true, so zTree will trigger the setting.callback.onRemove callback after remove the node.

+

Default: true

+
+
+

Boolean Format

+
+

true means: show the remove button

+

false means: hide the remove button

+
+

Function Parameter Descriptions

+
+

treeIdString

+

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

+

treeNodeJSON

+

JSON data object of the node which show the remove button

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide the remove button

+
var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: false
+	}
+};
+......
+

2. Hide the remove button of parent node

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