PDA

View Full Version : button doesn't show its new text



vnurin
6 Aug 2011, 8:33 PM
I added buttons array to the toolbar, then changed text of buttons. How I can make new texts of buttons visible on the toolbar?

bharatn
6 Aug 2011, 9:30 PM
Please post code to get faster help.

Here is one way

Ext.getCmp('#toolbarId').items.getAt(indexIfItem).setText('new text');

vnurin
7 Aug 2011, 4:11 AM
Thanks a lot! I lost my Yesterday on that!

mitchellsimoens
7 Aug 2011, 6:41 AM
Thanks a lot! I lost my Yesterday on that!

I would suggest reading the API docs as I'm sure you would have come across the setText method.

http://dev.sencha.com/deploy/touch/docs/