我正在尝试使用此组件:Colorpick button (xtype: colorbutton)
我对 ExtJS 很陌生,我不知道如何以及在哪里正确定义这种类型的按钮。我应该把源代码放在哪里,我应该如何正确地包含它?
我正在将 ExtJS 6.0.0 用于 web 映射应用程序。我在我的网页所在的目录中有“ext-6.0.0”文件夹,这样我就可以轻松地包含 ext-all.js 文件。
我包含所有面板的主 javascript 文件有 2 个主要组件:
Ext.require([
'GeoExt.component.Map',
'GeoExt.data.store.LayersTree',
]);
和
Ext.application({
name: 'BasicTree',
launch: function(){
[... all my code here ...]
}
})
这个文件(名为 panel.js)包含在我的 index.html 文件中。
谢谢 !