Skip to content

Instantly share code, notes, and snippets.

@rdougan
Forked from moduscreate/gist:1674072
Created January 25, 2012 01:39
Show Gist options
  • Save rdougan/1674082 to your computer and use it in GitHub Desktop.
Save rdougan/1674082 to your computer and use it in GitHub Desktop.
Ext.define('MyContainer', {
extend : 'Ext.Container',
config : {
layout : {
type : 'vbox',
align : 'stretch'
},
items: {
{
xtype : 'personlist',
itemId : 'list',
flex : .25,
height : 300,
style : 'border-right: 1px solid #999',
listeners : {
select : 'onListSelect'
}
},
{
xtype : 'persondetail',
itemId : 'detail',
flex : 1
}
}
},
onListSelect : function(list, record) {
this.getComponent('detail').loadRecord(record);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment