aboutsummaryrefslogtreecommitdiffstats
path: root/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html
diff options
context:
space:
mode:
author“shentao” <shentao@chinamobile.com>2017-01-26 16:19:00 +0800
committer“shentao” <shentao@chinamobile.com>2017-01-26 16:21:54 +0800
commit6f01a8756fe38c0d6565c369005142adda4b9b57 (patch)
tree5f360e44ac9bb70f83781af1303d3915bb45cd3f /portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html
parent3f47ae6567e95e118c4a477e24cdc509dd0dce89 (diff)
rebuild GUI structure(only changed modules' name)
Issue-id : CLIENT-14 Change-Id: Ie4fa30f1a51393576fbdc68e12d810565cbf06eb Signed-off-by: “shentao” <shentao@chinamobile.com>
Diffstat (limited to 'portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html')
-rw-r--r--portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html b/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html
deleted file mode 100644
index e24b8287..00000000
--- a/portal-common/src/main/webapp/common/thirdparty/zTree/api/cn/setting.view.addHoverDom.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<div class="apiDetail">
-<div>
- <h2><span>Function(treeId, treeNode)</span><span class="path">setting.view.</span>addHoverDom</h2>
- <h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.exedit</span> 扩展 js ]</span></h3>
- <div class="desc">
- <p></p>
- <div class="longdesc">
- <p>用于当鼠标移动到节点上时,显示用户自定义控件,显示隐藏状态同 zTree 内部的编辑、删除按钮</p>
- <p class="highlight_red">请务必与 <span class="highlight_red">setting.view.removeHoverDom</span> 同时使用;属于高级应用,使用时请确保对 zTree 比较了解。</p>
- <p>默认值:null</p>
- </div>
- </div>
- <h3>Function 参数说明</h3>
- <div class="desc">
- <h4><b>treeId</b><span>String</span></h4>
- <p>对应 zTree 的 <b class="highlight_red">treeId</b>,便于用户操控</p>
- <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
- <p>需要显示自定义控件的节点 JSON 数据对象</p>
- </div>
- <h3>setting & function 举例</h3>
- <h4>1. 设置鼠标移到节点上,在后面显示一个按钮</h4>
- <pre xmlns=""><code>var setting = {
- view: {
- addHoverDom: addHoverDom,
- removeHoverDom: removeHoverDom,
- ......
- }
-};
-function addHoverDom(treeId, treeNode) {
- var aObj = $("#" + treeNode.tId + "_a");
- if ($("#diyBtn_"+treeNode.id).length>0) return;
- var editStr = "&lt;span id='diyBtn_space_" +treeNode.id+ "' &gt;&nbsp;&lt;/span&gt;"
- + "&lt;button type='button' class='diyBtn1' id='diyBtn_" + treeNode.id
- + "' title='"+treeNode.name+"' onfocus='this.blur();'&gt;&lt;/button&gt;";
- aObj.append(editStr);
- var btn = $("#diyBtn_"+treeNode.id);
- if (btn) btn.bind("click", function(){alert("diy Button for " + treeNode.name);});
-};
-function removeHoverDom(treeId, treeNode) {
- $("#diyBtn_"+treeNode.id).unbind().remove();
- $("#diyBtn_space_" +treeNode.id).unbind().remove();
-};
-......</code></pre>
-</div>
-</div> \ No newline at end of file