treeNode.target.html 904 B

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