我从 extjs 4 开始,我当前的问题:插入 html 代码。在这里,我需要将该代码插入到“项目”中。所以我的经验不足不应该做。期待得到人们的帮助
“这是代码”
Ext.define('MyDesktop.mytree', {
extend: 'Ext.ux.desktop.Module',
requires: [
'Ext.tree.Panel',
'Ext.data.TreeStore',
'Ext.form.field.HtmlEditor',
],
id:'tree',
init : function(){
this.launcher = {
//title
text: 'My Computer',
//icon
iconCls:'notepad'
};
},
createWindow : function(){
var desktop = this.app.getDesktop();
var win = desktop.getWindow('tree');
if(!win){
win = desktop.createWindow({
id: 'tree',
title:'MyComputer',
width:600,
height:400,
iconCls: 'notepad',
animCollapse:false,
border: false,
hideMode: 'offsets',
columns:3,
items: [
{
},
]
});
}
return win;
}
});