Skip to content

Instantly share code, notes, and snippets.

@cory-ko-g
Created August 6, 2012 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cory-ko-g/3271051 to your computer and use it in GitHub Desktop.
Save cory-ko-g/3271051 to your computer and use it in GitHub Desktop.
createTreePanel: function() {
var store = Ext.create('Ext.data.TreeStore', {
root: {
expanded: true
},
proxy: {
type: 'ajax',
url: 'tree.json'
}
});
this.treePanel = Ext.create('Ext.tree.Panel', {
id: 'tree-panel',
retion: 'center',
width: 230,
rootVisible: false,
store: store
});
return this.treePanel;
},
createMainTabPanel: function() {
this.mainTabPanel = Ext.create('Ext.tab.Panel', {
});
return this.mainTabPanel;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment