1 <div class="apiDetail">
\r
3 <h2><span>String / Function(treeId, treeNode)</span><span class="path">setting.edit.</span>removeTitle</h2>
\r
4 <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.exedit</span> js ]</span></h3>
\r
7 <div class="longdesc">
\r
8 <p>the title of the remove button DOM. It is valid when <span class="highlight_red">[setting.edit.enable = true & setting.edit.showRemoveBtn = true]</span></p>
\r
9 <p>Default: "remove"</p>
\r
12 <h3>String Format</h3>
\r
14 <p>When the mouse over the remove button, the browser auto pop-up message content.</p>
\r
16 <h3>Function Parameter Descriptions</h3>
\r
18 <h4><b>treeId</b><span>String</span></h4>
\r
19 <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
\r
20 <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
\r
21 <p>JSON data object of the node which show the remove button</p>
\r
22 <h4 class="topLine"><b>Return </b><span>String</span></h4>
\r
23 <p>Return value is same as 'String Format'</p>
\r
25 <h3>Examples of setting & function</h3>
\r
26 <h4>1. Set title is 'remove the node' about all the remove button</h4>
\r
27 <pre xmlns=""><code>var setting = {
\r
30 showRemoveBtn: true,
\r
31 removeTitle: "remove the node"
\r
35 <h4>2. Set title is 'remove the parent node' about the parent node, and is 'remove the leaf node' about the leaf node</h4>
\r
36 <pre xmlns=""><code>function setRemoveTitle(treeId, treeNode) {
\r
37 return treeNode.isParent ? "remove the parent node":"remove the leaf node";
\r
42 showRemoveBtn: true,
\r
43 removeTitle: setRemoveTitle
\r