PDA

View Full Version : Change Toolbar Button Text



adbox
10 Mar 2009, 11:05 AM
I'd like to manually change the text of a toolbar button.

I've tried this:


Ext.getCmp('id_button_send').apply(this,{text:'Resend'});
along with this:



buttons: [
{
id: 'id_button_send',
text:'Send Quote',
handler: f_send,
},
]

but no work.

rrader
10 Mar 2009, 12:24 PM
Did you look at the api for Ext.button class. I would check the methods section.http://extjs.com/deploy/dev/docs/

adbox
10 Mar 2009, 12:59 PM
yes. This will work:



Ext.getCmp('id_button_send').setText('Resend');