git.ithinksw.org
/
extjs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git]
/
examples
/
direct
/
direct-tree.js
1
Ext.require([
2
'Ext.direct.*',
3
'Ext.data.*',
4
'Ext.tree.*',
5
'Ext.grid.Scroller'
6
]);
7
8
Ext.onReady(function() {
9
Ext.direct.Manager.addProvider(Ext.app.REMOTING_API);
10
11
var store = Ext.create('Ext.data.TreeStore', {
12
root: {
13
expanded: true
14
},
15
proxy: {
16
type: 'direct',
17
directFn: TestAction.getTree,
18
paramOrder: ['node']
19
}
20
});
21
22
23
// create the Tree
24
var tree = Ext.create('Ext.tree.Panel', {
25
store: store,
26
height: 350,
27
width: 600,
28
title: 'Tree Sample',
29
rootVisible: false,
30
renderTo: Ext.getBody()
31
});
32
});