How can I change listpanel title dynamically?
I have a navigationview where listpanel is the item. So the navigation bar display the panel title that i would change dynamically.
image:

Thanks.
listpanel = new Ext.Panel({
layout: 'fit',
id:'listpanel',
title:'change this title dinamically',
items: [
{
xtype: 'titlebar',
id: 'myTitle',
docked: 'top',
title: 'title1'
},
{ xtype: 'titlebar',
id: 'myMeanConsumption',
docked: 'bottom',
title: 'title2'
},
list
]
});
Do like this,
EDIT :
titleproperty is not available onExt.Panelcomponent. Hence, the below line is redundant.You need to change the
titleoftitlebaronly which I already mentioned above.I cannot see the
listpaneltitle.