treeNode.getNextNode.html 976 B

123456789101112131415161718192021222324252627
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>Function()</span><span class="path">treeNode.</span>getNextNode</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
  5. <div class="desc">
  6. <p></p>
  7. <div class="longdesc">
  8. <p>Get the treeNode's next sibling node.</p>
  9. <p class="highlight_red">Do not initialize or modify it, it is created by the zTree.</p>
  10. </div>
  11. </div>
  12. <h3>Function Parameter Descriptions</h3>
  13. <div class="desc">
  14. <h4><b>Return</b><span>JSON</span></h4>
  15. <p>JSON data object of the treeNode's next sibling node</p>
  16. <p class="highlight_red">If have not the next node, return null.</p>
  17. </div>
  18. <h3>Examples of treeNode</h3>
  19. <h4>1. Get the first selected node's next sibling node.</h4>
  20. <pre xmlns=""><code>var treeObj = $.fn.zTree.getZTreeObj("tree");
  21. var sNodes = treeObj.getSelectedNodes();
  22. if (sNodes.length > 0) {
  23. var node = sNodes[0].getNextNode();
  24. }
  25. </code></pre>
  26. </div>
  27. </div>