Javascript Sencha Touch:是否在面板项目中包含html文件?
根据上面的回答,我可以加载整个面板的HTML文件,但是我如何使用该解决方案将文件加载到项目中呢 我有以下文件Demo.jsJavascript Sencha Touch:是否在面板项目中包含html文件?,javascript,sencha-touch-2,Javascript,Sencha Touch 2,根据上面的回答,我可以加载整个面板的HTML文件,但是我如何使用该解决方案将文件加载到项目中呢 我有以下文件Demo.js Ext.define('Sencha.view.Demo', { extend: 'Ext.Panel', xtype: 'democard', config: { iconCls: 'search', title: 'Demo', styleHtmlContent: true, scrollable: 'vertical',
Ext.define('Sencha.view.Demo', {
extend: 'Ext.Panel',
xtype: 'democard',
config: {
iconCls: 'search',
title: 'Demo',
styleHtmlContent: true,
scrollable: 'vertical',
layout: {
type: 'vbox'
},
items: [{
docked: 'top',
xtype: 'toolbar',
title: 'Demo'
},
{
xtype: 'fieldset',
width: "100%",
style: {float:'left'},
items: [
{
xtype: 'textfield',
name : 'name',
label: 'Text Label'
},{
xtype: 'button',
text: 'Press',
ui: 'confirm'
},{
width: '60px'
}]
},
{
> HERE I WANT TO INSERT THE HTML FILE <
}
]
}
});
但是“file.html”不会显示。我怎样才能做到这一点?我想在一些项目中包括一些HTML文件
已解决 好的,我们将使用另一个希望,它会有所帮助。使用此解决方案,我只需编写“html:loadURL('url')”
extend: 'HTMLPanel',
config: {
iconCls: 'home',
title: 'Holcim',
styleHtmlContent: true,
scrollable: 'vertical',
url: 'file.html',
}