CLIENT GUI Framework
[vnfsdk/refrepo.git] / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / treeNode.iconClose.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>String</span><span class="path">treeNode.</span>iconClose</h2>\r
4         <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>\r
5         <div class="desc">\r
6                 <p></p>\r
7                 <div class="longdesc">\r
8                         <p>URL path of parent node's custom icon when it is collapsed.</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 'iconOpen' 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
13                 </div>\r
14         </div>\r
15         <h3>String Format</h3>\r
16         <div class="desc">\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
19         </div>\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
25 \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
28 \r
29         //the custom icon for leaf node\r
30         { name:"Leaf Node", icon:"/img/leaf.gif"}\r
31 ]</code></pre>\r
32 </div>\r
33 </div>