Guest User

Untitled

a guest
May 24th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. {
  2. xtype: 'treepanel',
  3. useArrows: true,
  4. autoScroll: false,
  5. animate: true,
  6. enableDD: false,
  7. title: 'Configuration',
  8. width: 200,
  9. height: 400,
  10. rootVisible: false,
  11. store: Ext.create('Ext.data.TreeStore', {
  12. root: {
  13. expanded: true,
  14. children: [{
  15. text: "Configure Application",
  16. expanded: true,
  17. children: [{
  18. text: "Manage Application",
  19. leaf: true
  20. }, {
  21. text: "Scenario",
  22. leaf: true
  23. }]
  24. }, {
  25. text: "User Configuration",
  26. expanded: true,
  27. children: [{
  28. text: "Manage User",
  29. leaf: true
  30. }, {
  31. text: "User rights",
  32. leaf: true
  33. }]
  34. }, {
  35. text: "Test Configuration",
  36. //leaf: true,
  37. expanded: true,
  38. children: [{
  39. text: "Manage User",
  40. leaf: true
  41. }, {
  42. text: "User rights",
  43. leaf: true
  44. }]
  45. }]
  46. }
  47. }),
  48. listeners: {
  49. itemclick: function(s, r) {
  50. alert(r.data.text);
  51. }
  52. }
  53. }
Add Comment
Please, Sign In to add comment