treeNode.url.html 1.2 KB

12345678910111213141516171819202122232425262728
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String</span><span class="path">treeNode.</span>url</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>The URL of node link</p>
  10. <p class="highlight_red">1. In edit mode (setting.edit.enable = true) , this feature fails. If you must
  11. use a similar feature, please use the 'onClick' callback for their own control.</p>
  12. <p class="highlight_red">2. If you use the 'onClick' callback function to control opening URL , then set
  13. the URL in the other custom attribute, do not use the 'url' attribute.</p>
  14. <p>Default: undefined</p>
  15. </div>
  16. </div>
  17. <h3>String Format</h3>
  18. <div class="desc">
  19. <p>As same as &lt;a&gt; tag's 'href' attribute.</p>
  20. </div>
  21. <h3>Examples of treeNode</h3>
  22. <h4>1. Set the URL is 'g.cn'</h4>
  23. <pre xmlns=""><code>var nodes = [
  24. { "id":1, "name":"Google CN", "url":"http://g.cn"},
  25. ......
  26. ]</code></pre>
  27. </div>
  28. </div>