CLIENT GUI Framework
[vnfsdk/refrepo.git] / portal-common / src / main / webapp / common / thirdparty / zTree / api / en / treeNode.isLastNode.html
1 <div class="apiDetail">\r
2 <div>\r
3         <h2><span>Boolean</span><span class="path">treeNode.</span>isLastNode</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>Judge whether the node is the sibling nodes's last node.</p>\r
9                         <p class="highlight_red">If you use the 'exhide' pack, so this attribute will only support the node which be shown. </p>\r
10                         <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>\r
11                 </div>\r
12         </div>\r
13         <h3>Boolean Format</h3>\r
14         <div class="desc">\r
15         <p> true means: the node is last node.</p>\r
16         <p> false means: the node is not last node.</p>\r
17         <p class="highlight_red">If the node has been hidden, isLastNode = false</p>\r
18         </div>\r
19         <h3>Examples of treeNode</h3>\r
20         <h4>1. Judge whether the first selected node is the sibling nodes's last node.</h4>\r
21         <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");\r
22 var sNodes = treeObj.getSelectedNodes();\r
23 if (sNodes.length > 0) {\r
24         var isLastNode = sNodes[0].isLastNode;\r
25 }\r
26 </code></pre>\r
27 </div>\r
28 </div>