treeview.rml 847 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <rml>
  2. <head>
  3. <link type="text/template" href="../../../assets/window.rml"/>
  4. <title>Tree View</title>
  5. <style>
  6. body
  7. {
  8. width: 450px;
  9. height: 400px;
  10. margin: auto;
  11. }
  12. /* Hide the window icon. */
  13. div#title_bar div#icon
  14. {
  15. display: none;
  16. }
  17. datagridcell
  18. {
  19. text-align: left;
  20. }
  21. datagridexpand
  22. {
  23. display: inline-block;
  24. vertical-align: -3px;
  25. margin-right: 2px;
  26. }
  27. spacer
  28. {
  29. display: inline-block;
  30. width: 25px;
  31. }
  32. </style>
  33. </head>
  34. <body template="window">
  35. <datagrid source="file.root" style="height: 100%;">
  36. <col fields="name, depth, #num_children" formatter="file" />
  37. </datagrid>
  38. </body>
  39. </rml>