I have a panel as follows:

Ext.define('TestPanel', {
  extend: 'Ext.panel.Panel',
  alias: 'widget.testPanel',
id: 'testerPanel',
title: 'oldTilte',
//other code
});

I have a controller of a different view where I wish to update the panel title:

var grid = Ext.getCmp('testerPanel');
grid.setTitle('newTitle'); //doesn't update the title

//tried with including ref or view in the controller
this.getTestPanel().setTitle('newTitle'); //this didn't update it either

How can I update the panel title? Also for both above tries, if I print the console.info(grid) or console.info(this.getTestPanel()), I always see the updated title in the console output but the UI itself remains unchanged

Related posts

Recent Viewed