From 6f01a8756fe38c0d6565c369005142adda4b9b57 Mon Sep 17 00:00:00 2001 From: “shentao” Date: Thu, 26 Jan 2017 16:19:00 +0800 Subject: rebuild GUI structure(only changed modules' name) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Issue-id : CLIENT-14 Change-Id: Ie4fa30f1a51393576fbdc68e12d810565cbf06eb Signed-off-by: “shentao” --- .../thirdparty/zTree/api/cn/zTreeObj.addNodes.html | 42 ---------------------- 1 file changed, 42 deletions(-) delete mode 100644 portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/zTreeObj.addNodes.html (limited to 'portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/zTreeObj.addNodes.html') diff --git a/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/zTreeObj.addNodes.html b/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/zTreeObj.addNodes.html deleted file mode 100644 index 65899f41..00000000 --- a/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/zTreeObj.addNodes.html +++ /dev/null @@ -1,42 +0,0 @@ -
-
-

Function(parentNode, newNodes, isSilent)zTreeObj.addNodes

-

概述[ 依赖 jquery.ztree.core 扩展 js ]

-
-

-
-

添加节点。

-

v3.x 为了避免原先反复初始化造成的数据重复问题,在 初始化 和 添加节点 时内部进行 clone 操作。如果需要获取数据在 zTree 内的对象,请获取此方法的返回值。

-

请通过 zTree 对象执行此方法。

-
-
-

Function 参数说明

-
-

parentNodeJSON

-

指定的父节点,如果增加根节点,请设置 parentNode 为 null 即可。

-

请务必保证此节点数据对象 是 zTree 内部的数据对象

-

newNodesJSON / Array(JSON)

-

需要增加的节点数据 JSON 对象集合,数据只需要满足 zTree 的节点数据必需的属性即可,详细请参考“treeNode 节点数据详解”

-

1、v3.x 支持单独添加一个节点,即如果只新增一个节点,不用必须包在数组中

-

2、使用简单数据模式,请参考 setting.data.simpleData 内的属性说明

-

isSilentBoolean

-

设定增加节点后是否自动展开父节点。

-

isSilent = true 时,不展开父节点,其他值或缺省状态都自动展开。

-

返回值Array(JSON)

-

返回值是 zTree 最终添加的节点数据集合

-

如果 newNodes 是单个节点数据 JSON,返回值也是将其包在 Array 内

-

请务必记住:返回值中的数据对象 是 newNodes 被 clone 后的,所以绝对不相等!

-
-

function 举例

-

1. 对于 id = "tree" 的 zTree 增加 1 个根节点

-
var treeObj = $.fn.zTree.getZTreeObj("tree");
-var newNode = {name:"newNode1"};
-newNode = treeObj.addNodes(null, newNode);
-
-

2. 对于 id = "tree" 的 zTree 增加 3 个根节点

-
var treeObj = $.fn.zTree.getZTreeObj("tree");
-var newNodes = [{name:"newNode1"}, {name:"newNode2"}, {name:"newNode3"}];
-newNodes = treeObj.addNodes(null, newNodes);
-
-
-
\ No newline at end of file -- cgit 1.2.3-korg