【发布时间】:2016-12-26 02:38:00
【问题描述】:
我已经在 sencha touch
中实现了我的应用程序在我的面板中,我有一个导航栏,我想在面板标题上动态设置标题
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 extjs sencha-touch-2 sencha-touch-theming