tubamanu
25 Jun 2010, 5:26 AM
Hi Folks,
i'm trying to implement a simple sencha application with an tabpanel that contains two panels.
My Problem is that i cannot add any panels to my tabpanel. I used the function add and addDocked but nothings workes........
My Code is like this
cf.Main = function(){return {
theTabPanel :false,
theFirstPanel :false,
theSecondPanel :false,
init: function () {
this.initFirstPanel();
this.initSecondPanel();
this.initTabPanel();
this.theTabPanel.add(this.theFirstPanel);
},
initTabPanel: function () {
this.theTabPanel = new Ext.TabPanel({
fullscreen: true,
animation: 'slide'
});
},
initFirstPanel: function () {
this.theFirstPanel = new Ext.Panel({
title: 'Great Panel 1',
html: '!!!!!!!!!!!!!!'
});
},
initSecondPanel: function () {
this.theSecondPanel = new Ext.Panel({
title: 'Great Panel 2',
html: '????????????????'
});
}
};}();
i'm trying to implement a simple sencha application with an tabpanel that contains two panels.
My Problem is that i cannot add any panels to my tabpanel. I used the function add and addDocked but nothings workes........
My Code is like this
cf.Main = function(){return {
theTabPanel :false,
theFirstPanel :false,
theSecondPanel :false,
init: function () {
this.initFirstPanel();
this.initSecondPanel();
this.initTabPanel();
this.theTabPanel.add(this.theFirstPanel);
},
initTabPanel: function () {
this.theTabPanel = new Ext.TabPanel({
fullscreen: true,
animation: 'slide'
});
},
initFirstPanel: function () {
this.theFirstPanel = new Ext.Panel({
title: 'Great Panel 1',
html: '!!!!!!!!!!!!!!'
});
},
initSecondPanel: function () {
this.theSecondPanel = new Ext.Panel({
title: 'Great Panel 2',
html: '????????????????'
});
}
};}();