1 <div class="apiDetail">
\r
3 <h2><span>String</span><span class="path">treeNode.</span>iconOpen</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>URL path of parent node's custom icon when it is expanded.</p>
\r
9 <p class="highlight_red">1. Only parent node support this attribute.</p>
\r
10 <p class="highlight_red">2. This attribute must be used simultaneously with 'iconClose' attribute.</p>
\r
11 <p class="highlight_red">3. If you need to use css to set the custom icon, please set the 'treeNode.iconSkin' attribute.</p>
\r
12 <p>Default: undefined</p>
\r
15 <h3>String Format</h3>
\r
17 <p>Icon image url can be a relative path or absolute path.</p>
\r
18 <p class="highlight_red">If use a relative path, please note the relationship between icon image and the page, ensure the correct image path.</p>
\r
20 <h3>Examples of treeNode</h3>
\r
21 <h4>1. Set the custom icon</h4>
\r
22 <pre xmlns=""><code>var nodes = [
\r
23 //Only show one icon when it is expanded or collapsed.
\r
24 { name:"Parent Node 1", icon:"/img/parent.gif"},
\r
26 //Show two icons when it is expanded or collapsed.
\r
27 { name:"Parent Node 2", iconOpen:"/img/open.gif", iconClose:"/img/close.gif"},
\r
29 //the custom icon for leaf node
\r
30 { name:"Leaf Node", icon:"/img/leaf.gif"}
\r