-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div class="apiDetail"> | ||
<div> | ||
<h2><span>Function(name, treeNode)</span><span class="path">setting.data.render.</span>name</h2> | ||
<h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> | ||
<div class="desc"> | ||
<p></p> | ||
<div class="longdesc"> | ||
<p>用于渲染节点名称时进行重新渲染节点名称,最终节点名称将以方法返回的值为准</p> | ||
<p>默认值:null</p> | ||
</div> | ||
</div> | ||
<h3>Function 参数说明</h3> | ||
<div class="desc"> | ||
<h4><b>name</b><span>String</span></h4> | ||
<p>对应 zTree 利用 setting.key.name 获取到的节点名称 </p> | ||
<h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> | ||
<p>待渲染节点的 JSON 数据对象</p> | ||
<p class="highlight_red">针对根进行渲染时,treeNode = null</p> | ||
<h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> | ||
<p>返回值是 渲染后的节点名称</p> | ||
</div> | ||
<h3>setting & function 举例</h3> | ||
<pre xmlns=""><code> | ||
var setting = { | ||
data: { | ||
render: function(name,treeNode){ | ||
return name + treeNode.id; | ||
} | ||
} | ||
}; | ||
......</code></pre> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div class="apiDetail"> | ||
<div> | ||
<h2><span>Function(title, treeNode)</span><span class="path">setting.data.render.</span>title</h2> | ||
<h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3> | ||
<div class="desc"> | ||
<p></p> | ||
<div class="longdesc"> | ||
<p>用于渲染节点标题时进行重新渲染节点标题,最终节点标题将以方法返回的值为准</p> | ||
<p>默认值:null</p> | ||
</div> | ||
</div> | ||
<h3>Function 参数说明</h3> | ||
<div class="desc"> | ||
<h4><b>title</b><span>String</span></h4> | ||
<p>对应 zTree 利用 setting.key.title 获取到的节点标题 </p> | ||
<h4 class="topLine"><b>treeNode</b><span>JSON</span></h4> | ||
<p>待渲染节点的 JSON 数据对象</p> | ||
<p class="highlight_red">针对根进行渲染时,treeNode = null</p> | ||
<h4 class="topLine"><b>返回值</b><span>Boolean</span></h4> | ||
<p>返回值是 渲染后的节点标题</p> | ||
</div> | ||
<h3>setting & function 举例</h3> | ||
<pre xmlns=""><code> | ||
var setting = { | ||
data: { | ||
render: function(title,treeNode){ | ||
return title + treeNode.id; | ||
} | ||
} | ||
}; | ||
......</code></pre> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters