From f0b211f269df2b0bb10d5552d14aeb8991a750ed Mon Sep 17 00:00:00 2001 From: seshukm Date: Fri, 20 Jan 2017 17:43:08 +0530 Subject: GUI Code refactor GUI Code refactor for the sun release code. Issue-Id : CLIENT-11 Change-Id: I771cc25ff3c8ff7a4e939ce7baef7dd94a67974b Signed-off-by: seshukm --- .../zTree/api/en/setting.edit.showRenameBtn.html | 102 ++++++++++----------- 1 file changed, 51 insertions(+), 51 deletions(-) (limited to 'openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html') diff --git a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html index 4fe2f581..5f7c87d9 100644 --- a/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html +++ b/openo-portal/portal-common/src/main/webapp/common/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html @@ -1,52 +1,52 @@ -
-
-

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

-

Overview[ depends on jquery.ztree.exedit js ]

-
-

-
-

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

-

When you click the rename button:

-

1. Click the rename button, you can rename the node.

-

2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

-

3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

-

4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

-

Default: true

-
-
-

Boolean Format

-
-

true means: show the rename button

-

false means: hide the rename button

-
-

Function Parameter Descriptions

-
-

treeIdString

-

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

-

treeNodeJSON

-

JSON data object of the node which show the rename button

-

Return Boolean

-

Return value is same as 'Boolean Format'

-
-

Examples of setting & function

-

1. Hide the rename button

-
var setting = {
-	edit: {
-		enable: true,
-		showRenameBtn: false
-	}
-};
-......
-

2. Hide the rename button of parent node

-
function setRenameBtn(treeId, treeNode) {
-	return !treeNode.isParent;
-}
-var setting = {
-	edit: {
-		enable: true,
-		showRenameBtn: setRenameBtn
-	}
-};
-......
-
+
+
+

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

+

Overview[ depends on jquery.ztree.exedit js ]

+
+

+
+

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

+

When you click the rename button:

+

1. Click the rename button, you can rename the node.

+

2. After rename operation (the input DOM blur or press the Enter Key), zTree will trigger the setting.callback.beforeRename callback, and you can decide whether to allow rename.

+

3. If the 'beforeRename' callback return false, so zTree will keep the edit status. (Press the ESC key, can be restored to the original state.

+

4. If you don't set the 'beforeRename' or the 'beforeRename' callback return true, so zTree will trigger the setting.callback.onRename callback after rename the node.

+

Default: true

+
+
+

Boolean Format

+
+

true means: show the rename button

+

false means: hide the rename button

+
+

Function Parameter Descriptions

+
+

treeIdString

+

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

+

treeNodeJSON

+

JSON data object of the node which show the rename button

+

Return Boolean

+

Return value is same as 'Boolean Format'

+
+

Examples of setting & function

+

1. Hide the rename button

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

2. Hide the rename button of parent node

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