treeNode.target.html 1.1 KB

1234567891011121314151617181920212223242526
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String</span><span class="path">treeNode.</span>target</h2>
  4. <h3>Overview<span class="h3_info">[ depends on <span
  5. class="highlight_green">jquery.ztree.core</span> js ]</span></h3>
  6. <div class="desc">
  7. <p></p>
  8. <div class="longdesc">
  9. <p>Used to set the target where the node is clicked to open url. It is valid when <span
  10. class="highlight_red">[treeNode.url exists]</span></p>
  11. <p>Default: undefined</p>
  12. </div>
  13. </div>
  14. <h3>String Format</h3>
  15. <div class="desc">
  16. <p>As same as &lt;a&gt; tag's 'target' attribute. e.g. '_blank', '_self' or other window name.</p>
  17. <p>if this attribute is omitted, zTree default set it to '_blank'</p>
  18. </div>
  19. <h3>Exmaples of treeNode</h3>
  20. <h4>1. Set target is '_blank'</h4>
  21. <pre xmlns=""><code>var nodes = [
  22. { "id":1, "name":"test1", "url":"http://myTest.com", "target":"_blank"},
  23. ......
  24. ]</code></pre>
  25. </div>
  26. </div>