我正在尝试在 view.js 中显示没有标签面板的图像但是,尽管遵循了文档,但它似乎无法正常工作。谁能帮忙指出我做错了什么?
谢谢
应用程序.js
Ext.application({
name: 'hoodhelp1a',
requires: [
'Ext.MessageBox'
],
views: ['Main'],
isIconPrecomposed: true,
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
// Initialize the main view
Ext.Viewport.add(Ext.create('hoodhelp1a.view.Main'));
},
onUpdated: function() {
Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
function(buttonId) {
if (buttonId === 'yes') {
window.location.reload();
}
}
);
}
});
查看/Main.js
Ext.define("hoodhelp1a.view.Main", {
extend: 'Ext.tab.Panel',
requires: [
'Ext.TitleBar',
'Ext.Video',
'Ext.Img',
],
config: {
tabBarPosition: 'bottom',
items: [
{
title: 'Home',
iconCls: 'home',
xtype: 'container',
layout: 'hbox',
items: [
{
docked: 'top',
xtype: 'titlebar',
title: 'Welcome to Sencha Touch 2'
},
{
xtype: 'image',
src: 'http://www.sencha.com/assets/images/sencha-avatar-64x64.png'
}
]
},
{
title: 'Get Started',
iconCls: 'action',
items: [
{
docked: 'top',
xtype: 'titlebar',
title: 'Getting Started'
},
{
xtype: 'video',
url: 'http://av.vimeo.com/64284/137/87347327.mp4?token=1330978144_f9b698fea38cd408d52a2393240c896c',
posterUrl: 'http://b.vimeocdn.com/ts/261/062/261062119_640.jpg'
}
]
}
]
}
});