我已經實現了我的應用程序在煎茶觸摸如何設置標題面板的導航欄動態
在我的板,我有一個導航欄,我想在面板接頭動態設置標題
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