1 <div class="apiDetail">
\r
3 <h2><span>Function(expandFlag)</span><span class="path">zTreeObj.</span>expandAll</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>Expand or collapse all nodes.</p>
\r
9 <p class="highlight_red">This method does not trigger 'beforeExpand / onExpand' or 'beforeCollapse / onCollapse' callback function.</p>
\r
10 <p class="highlight_red">Please use zTree object to executing the method.</p>
\r
13 <h3>Function Parameter Descriptions</h3>
\r
15 <h4><b>expandFlag</b><span>Boolean</span></h4>
\r
16 <p>expandFlag = true means: expand all nodes.</p>
\r
17 <p>expandFlag = false means: collapse all nodes.</p>
\r
18 <h4 class="topLine"><b>Return </b><span>Boolean</span></h4>
\r
19 <p>return the result of expand or collapse.</p>
\r
20 <p>true means: expand all nodes</p>
\r
21 <p>false means: collapse all nodes</p>
\r
22 <p>null means: have no parent node to expand or collapse.</p>
\r
24 <h3>Examples of function</h3>
\r
25 <h4>1. Expand all nodes</h4>
\r
26 <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
\r
27 treeObj.expandAll(true);
\r