views:

28

answers:

1

How od I update the title property for an item in a tabPanel from another function?

mainpanel is my tabPanel and I am successfully updating the title according to my js debugger. Calling doLayout(); doesn't seem to redraw the tab in the UI though!

var mainpanel = Ext.getCmp('mainpanel'); var item = mainpanel.items.items[0]; item.title = 'Me'; mainpanel.doLayout();

A: 

Isn't there a setTitle() method ?

Drasill