guys if u wanna set static toolbar with dynamic text.....
First set the toolbar in rootPanel
Code:
var toolbar = new Ext.Toolbar();
Then set the content dynamically to the toolbar
Code:
//add listener to child panel
listener:({
//while the panel is visually activated
activate:function()
{
toolbar.setTitle('New Title');
}
//if u wanna deactivate the content after traversing to back page then
deactivate:function()
{
toolbar.setTitle('Previous Title');
}
})
Hope its useful for someone who is new 2 sencha touch...
Thanks
Ajain