View Full Version : Updaing the badgeText property of a panel
Shijutv
30 Dec 2010, 3:05 AM
Hi All,
How can i update the badgeText property of items of a tab panel?
This is very urgent.
Thanks In advance
Shiju
steve1964
30 Dec 2010, 4:15 AM
Give an id to your button id: 'someid', then to set badge text use Ext.getCmp('someid').setBadge('badgetext');
Shijutv
30 Dec 2010, 4:42 AM
Give an id to your button id: 'someid', then to set badge text use Ext.getCmp('someid').setBadge('badgetext');
We have panel to the tab panel with badge text as 5
this.UpdatePanel = new iGlossary.views.UpdatePanel({
title: 'Update',
id:'update',
iconCls: 'favorites',
badgeText: '5'
});
and i used Ext.getCmp('update').setBadge('6') for changing the badge text dynamically.
But it is not working , got Ext.getCmp('update').setBadge as undefined
Thanks
Shiju
steve1964
30 Dec 2010, 5:15 AM
You can reference a button in the tabbar in this way this.getTabBar().items.items[n].setBadge('6'); where n is the index number of your button. I cant say more with this portion of code...
Shijutv
30 Dec 2010, 5:22 AM
You can reference a button in the tabbar in this way this.getTabBar().items.items[n].setBadge('6'); where n is the index number of your button. I cant say more with this portion of code...
Hi steve1964 (http://www.sencha.com/forum/member.php?171821-steve1964),
Thanks, it is working now .
Shiju
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.