Simonhayre
20 Jul 2010, 12:10 AM
well I can't get it working.
I'm using
demos.BottomTabs = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
ui: 'light',
layout: {
pack: 'center'
}
},
ui: 'light',
animation: {
type: 'slide',
cover: true
},
defaults: {
scroll: 'vertical',
},
items: [{
title: 'About',
html: '<p>Docking tabs to the bottom will automatically change their style. The tabs below are ui="light", though the standard type is dark. Badges (like the 4 below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card card1'
},
{
title: 'Favorites',
html: 'Favorites Card',
iconCls: 'favorites',
cls: 'card card2',
id:'FavTabPanel',
badgeText: '4'
}]
});
And then..
Ext.getCmp('FavTabPanel').setBadge('Hello');
I get the following error message:
TypeError: Result of expression 'Ext.getCmp('FavTabPanel').setBadge' [undefined] is not a function.
:((
I'm using 0.91 ext-touch-debug.js
I'm using
demos.BottomTabs = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
ui: 'light',
layout: {
pack: 'center'
}
},
ui: 'light',
animation: {
type: 'slide',
cover: true
},
defaults: {
scroll: 'vertical',
},
items: [{
title: 'About',
html: '<p>Docking tabs to the bottom will automatically change their style. The tabs below are ui="light", though the standard type is dark. Badges (like the 4 below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card card1'
},
{
title: 'Favorites',
html: 'Favorites Card',
iconCls: 'favorites',
cls: 'card card2',
id:'FavTabPanel',
badgeText: '4'
}]
});
And then..
Ext.getCmp('FavTabPanel').setBadge('Hello');
I get the following error message:
TypeError: Result of expression 'Ext.getCmp('FavTabPanel').setBadge' [undefined] is not a function.
:((
I'm using 0.91 ext-touch-debug.js