最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Get the title of the panel using id - Stack Overflow

programmeradmin6浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 6

Since no getTitle() method is defined for the ponent Ext.Panel, I would go for the property directly:

var myTitle = Ext.getCmp('myPanel').title;
发布评论

评论列表(0)

  1. 暂无评论