Your question is a bit vague, however, you can add a template method:
Ext.define('MyContainer', {
extend: 'Ext.container.Container',
initComponent: function() {
this.items = this.createItems();
this.callParent();
},
createItems: function() {
return [{title: 'Foo'}];
}
});