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

String / Function(treeId, treeNode)setting.edit.removeTitle

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

the title of the remove button DOM. It is valid when [setting.edit.enable = true & setting.edit.showRemoveBtn = true]

+

Default: "remove"

+
+
+

String Format

+
+

When the mouse over the remove button, the browser auto pop-up message content.

+
+

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 String

+

Return value is same as 'String Format'

+
+

Examples of setting & function

+

1. Set title is 'remove the node' about all the remove button

+
var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: true,
+		removeTitle: "remove the node"
+	}
+};
+......
+

2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node

+
function setRemoveTitle(treeId, treeNode) {
+	return treeNode.isParent ? "remove the parent node":"remove the leaf node";
+}
+var setting = {
+	edit: {
+		enable: true,
+		showRemoveBtn: true,
+		removeTitle: setRemoveTitle
+	}
+};
+......
+
+
\ No newline at end of file -- cgit 1.2.3-korg