setting.view.expandSpeed.html 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <div class="apiDetail">
  2. <div>
  3. <h2><span>String / Number</span><span class="path">setting.view.</span>expandSpeed</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 animation speed of expand or collapse node. As same as 'speed' parameter in jQuery</p>
  10. <p class="highlight_red">In order to ensure zTree operating speed, if use the IE6, zTree will not use
  11. animation.</p>
  12. <p>Default: "fast"</p>
  13. </div>
  14. </div>
  15. <h3>String Format</h3>
  16. <div class="desc">
  17. <p>e.g. "slow", "normal", or "fast"</p>
  18. <p class="highlight_red">If set to "", zTree will not use animation.</p>
  19. </div>
  20. <h3>Number Format</h3>
  21. <div class="desc">
  22. <p>How long the animation will run. [Unit: ms] (e.g. 1000)</p>
  23. </div>
  24. <h3>Examples of setting</h3>
  25. <h4>1. Set the animation speed to slow</h4>
  26. <pre xmlns=""><code>var setting = {
  27. view: {
  28. expandSpeed: "slow"
  29. }
  30. };
  31. ......</code></pre>
  32. </div>
  33. </div>