demo.js 535 B

12345678910111213141516171819202122232425262728293031
  1. $(document).ready(function(){
  2. // first example
  3. $("#browser").treeview();
  4. // second example
  5. $("#navigation").treeview({
  6. persist: "location",
  7. collapsed: true,
  8. unique: true
  9. });
  10. // third example
  11. $("#red").treeview({
  12. animated: "fast",
  13. collapsed: true,
  14. unique: true,
  15. persist: "cookie",
  16. toggle: function() {
  17. window.console && console.log("%o was toggled", this);
  18. }
  19. });
  20. // fourth example
  21. $("#black, #gray").treeview({
  22. control: "#treecontrol",
  23. persist: "cookie",
  24. cookieId: "treeview-black"
  25. });
  26. });