我想使用sencha touch创建自定义工具栏.使用Ext.Toolbar,我可以创建一个像样的屏幕标题栏.但我的要求是将我公司的品牌形象标识放在标题栏的中心,而不是下面代码提供的简单文本.
{
xtype : 'toolbar',
docked: 'top',
title: 'My Toolbar'
}
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮我怎么做?
我已经在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'
}
]
},
Run Code Online (Sandbox Code Playgroud)
并在initcomponent方法实现代码来获取这样的组件
initComponent: function(component, options, wstitle) {
var bar = Ext.getCmp('myPanel');
}
Run Code Online (Sandbox Code Playgroud)