-
8 Jul 2008 4:41 AM #1
Trying to extend a Panel
Trying to extend a Panel
Hi,
Still beginner with Extjs, I'm trying to extend a Panel :
I want to open multiple times the same panel in tabs. So I think I need to create my class wich extends a panel with my items, grids, combos, datasources inside.
Maybe I'm wrong, but I think I should have that :
The problem is that I don't know how to declare my Datasources, my combos, grids, and even my columnOne and columnTwo.Code:MyDesktop.Article.MyArticle= Ext.extend(Ext.Panel,{ title:'mytitle', layout:'column', items:[columnOne,columnTwo] })
Inside a initComponent:function() ?
Thanks for any help
-
8 Jul 2008 4:48 AM #2
Code:MyDesktop.Article.MyArticle= Ext.extend(Ext.Panel, { title:'mytitle', layout:'column', initComponent: function() { Ext.apply(this, { items: [item1, item2] } ); MyDesktop.Article.MyArticle.superclass.initComponent.call(this); } } );Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
8 Jul 2008 5:53 AM #3


Reply With Quote