我已经实现了我的应用程序在煎茶触摸如何设置标题面板的导航栏动态
在我的板,我有一个导航栏,我想在面板接头动态设置标题
Ext.define('FleetSyncApp.view.WSMachineTypes', {
extend: 'Ext.Panel',
alias: 'widget.wsmachinetypes',
id: 'myPanel',
config: {
layout: {
type: 'vbox'
},
items: [
{
title: 'Contact information',
xtype: 'list',
----
----
-----
}
],
listeners: [
{
fn: 'initComponent',
event: 'initialize'
}
]
},
和initcomponent方法实现的代码来获得这样
组件initComponent: function(component, options, wstitle) {
var bar = Ext.getCmp('myPanel');
}
[如何在Sencha Touch上动态定义NavigationView的标题?](http://stackoverflow.com/questions/11818641/how-to-define-dynamically-the-title-in-a- navigationview-on-sencha-touch) – 2012-08-10 12:25:15