X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/forum/classes/Main.js diff --git a/examples/forum/classes/Main.js b/examples/forum/classes/Main.js new file mode 100644 index 00000000..4d08ef7a --- /dev/null +++ b/examples/forum/classes/Main.js @@ -0,0 +1,36 @@ +Ext.define('ForumBrowser.Main', { + extend: 'Ext.container.Viewport', + + initComponent: function(){ + Ext.apply(this, { + layout: 'border', + itemId: 'main', + items: [{ + xtype: 'forumlist', + region: 'west', + width: 300, + title: 'Forums', + split: true, + margins: '5 0 5 5' + }, { + region: 'center', + xtype: 'tabpanel', + margins: '5 5 5 0', + minWidth: 400, + border: false, + tabBar: { + border: true + }, + items: { + itemId: 'topic', + xtype: 'topiccontainer' + } + }] + }); + this.callParent(); + }, + + loadForum: function(rec){ + this.down('#topic').loadForum(rec); + } +});