PDA

View Full Version : How do I change the title of an item in a Ext.tab.panel (Sencha Architect)



Guycoupez
14 Jun 2012, 6:36 AM
I have a pannels with some items,

I m trying to change the title of those items when the users change language.
but I cannot find any setTitle or setText function



Ext.getCmp('my Ext.dataview.List item in my tab panel').setText('hello'); is not working

alternatively,
it would be nice to use variables anme to set titles of items when they are created, but I can't find a way to do this

Guycoupez
14 Jun 2012, 8:46 AM
Found the solution here :

http://www.sencha.com/forum/archive/index.php/t-211614.html?

->
Ext.getCmp('myTabPanel').items.items[0].tab.config.title = 'hello'
console.log(Ext.getCmp('myTabPanelItem').tab.setTitle('hello'));