I have a Ext Js panel and I want to get the Title of the panel for some purpose.
I have the id of the panel and I need to get the title of the panel from it.
I am looking for some thing like this
Ext.getCmp('myPanel').getTitle();
I am using Ext Js 3.4
I have a Ext Js panel and I want to get the Title of the panel for some purpose.
I have the id of the panel and I need to get the title of the panel from it.
I am looking for some thing like this
Ext.getCmp('myPanel').getTitle();
I am using Ext Js 3.4
Share Improve this question asked Feb 21, 2012 at 13:35 hophop 2,55811 gold badges40 silver badges56 bronze badges1 Answer
Reset to default 6Since no getTitle()
method is defined for the ponent Ext.Panel
, I would go for the property directly:
var myTitle = Ext.getCmp('myPanel').title;