/ext-4.1.0_b3/examples/tree/check-tree.html

https://bitbucket.org/srogerf/javascript · HTML · 35 lines · 29 code · 5 blank · 1 comment · 0 complexity · c5c1eead12631b8dd60dbf50d62dc42a 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. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <title>Tree Example</title>
  6. <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  7. <link rel="stylesheet" type="text/css" href="../shared/example.css" />
  8. <!-- GC -->
  9. <script type="text/javascript" src="../../ext-all.js"></script>
  10. <script type="text/javascript" src="check-tree.js"></script>
  11. <style>
  12. .x-tree-checked .x-grid-cell-inner {
  13. font-style: italic;
  14. color: #777;
  15. }
  16. .x-grid-row-selected .x-grid-cell {
  17. background-color: #efefef !important;
  18. }
  19. </style>
  20. </head>
  21. <body>
  22. <h1>Checkbox Selection in a TreePanel</h1>
  23. <p>This example shows simple checkbox selection in a tree. It is enabled on leaf nodes by simply
  24. setting <tt>checked:true/false</tt> at the node level.</p>
  25. <p>This example also shows loading an entire tree structure statically in one load call, rather than
  26. loading each node asynchronously.</p>
  27. <p>The js is not minified so it is readable. See <a href="check-tree.js">check-tree.js</a>.</p>
  28. <div id="tree-div"></div>
  29. </body>
  30. </html>