Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- xtype: 'treepanel',
- useArrows: true,
- autoScroll: false,
- animate: true,
- enableDD: false,
- title: 'Configuration',
- width: 200,
- height: 400,
- rootVisible: false,
- store: Ext.create('Ext.data.TreeStore', {
- root: {
- expanded: true,
- children: [{
- text: "Configure Application",
- expanded: true,
- children: [{
- text: "Manage Application",
- leaf: true
- }, {
- text: "Scenario",
- leaf: true
- }]
- }, {
- text: "User Configuration",
- expanded: true,
- children: [{
- text: "Manage User",
- leaf: true
- }, {
- text: "User rights",
- leaf: true
- }]
- }, {
- text: "Test Configuration",
- //leaf: true,
- expanded: true,
- children: [{
- text: "Manage User",
- leaf: true
- }, {
- text: "User rights",
- leaf: true
- }]
- }]
- }
- }),
- listeners: {
- itemclick: function(s, r) {
- alert(r.data.text);
- }
- }
- }
Add Comment
Please, Sign In to add comment