1 <div class="apiDetail">
\r
3 <h2><span>Boolean / Function(treeId, treeNode)</span><span class="path">setting.view.</span>dblClickExpand</h2>
\r
4 <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
\r
7 <div class="longdesc">
\r
8 <p>When double-click the parent node, 'dblClickExpand' is used to decide whether to expand the parent node.</p>
\r
12 <h3>Boolean Format</h3>
\r
14 <p> true means: When double-click the parent node, zTree will expand the parent node.</p>
\r
15 <p> false means: When double-click the parent node, zTree will not expand the parent node.</p>
\r
17 <h3>Function Pamameter Descriptions</h3>
\r
19 <h4><b>treeId</b><span>String</span></h4>
\r
20 <p>zTree unique identifier: <b class="highlight_red">treeId</b>, easy for users to control.</p>
\r
21 <h4 class="topLine"><b>treeNode</b><span>JSON</span></h4>
\r
22 <p>JSON data object of the node which be double-clicked.</p>
\r
23 <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
\r
24 <p>Return value is same as 'Boolean Format'</p>
\r
26 <h3>Example of setting</h3>
\r
27 <h4>1. When double-click the parent node, zTree will not expand the parent node.</h4>
\r
28 <pre xmlns=""><code>var setting = {
\r
30 dblClickExpand: false
\r
34 <h4>2. When double-click the parent node, zTree will expand the parent node which level>0.</h4>
\r
35 <pre xmlns=""><code>function dblClickExpand(treeId, treeNode) {
\r
36 return treeNode.level > 0;
\r
40 dblClickExpand: dblClickExpand
\r