/ext-4.1.0_b3/docs/extjs/examples/videos/tree.html

https://bitbucket.org/srogerf/javascript · HTML · 36 lines · 30 code · 5 blank · 1 comment · 0 complexity · 0c6eeb548c0761bfd003d7a6feb8a698 MD5 · raw file

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Grids</title>
  5. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
  6. <!-- GC -->
  7. <script type="text/javascript" src="../../ext-all.js"></script>
  8. </head>
  9. <body>
  10. <script type="text/javascript" charset="utf-8">
  11. Ext.require();
  12. Ext.onReady(function() {
  13. Ext.create('Ext.tree.Panel', {
  14. renderTo: Ext.getBody(),
  15. width: 400,
  16. height: 600,
  17. title: 'Categories',
  18. rootVisible: false, //IT'S UGLY THAT I HAVE TO DO THIS
  19. //ALSO, INCREDIBLY, IF I DELETE THE ROOTVISIBLE LINE THIS DOESN'T WORK AT ALL :/
  20. store: {
  21. autoLoad: true,
  22. proxy: {
  23. type: 'ajax',
  24. url: 'tree.json'
  25. }
  26. }
  27. });
  28. });
  29. </script>
  30. </body>
  31. </html>