- loader: new Ext.tree.TreeLoader({
- directFn: TestAction.getTree
- }),
- fbar: [{
- text: 'Reload root',
- handler: function(){
- tree.getRootNode().reload();
- }
- }]
+ proxy: {
+ type: 'direct',
+ directFn: TestAction.getTree,
+ paramOrder: ['node']
+ }
+ });
+
+
+ // create the Tree
+ var tree = Ext.create('Ext.tree.Panel', {
+ store: store,
+ height: 350,
+ width: 600,
+ title: 'Tree Sample',
+ rootVisible: false,
+ renderTo: Ext.getBody()