无法在Ext JS应用程序中包含ux [英] Unable to include ux in Ext JS application
问题描述
该应用程序不包括UX.
整个extjs库位于-myexample/js/ext-6.2.0
我从myexample/js/ext-6.2.0/
复制并将包含所有内容的文件夹"ux"打包到我的应用程序中
The application does not include the UX.
The entire extjs library is in - myexample/js/ext-6.2.0
I copied from myexample/js/ext-6.2.0/
packages the folder "ux" with all the contents into my application
test
|---app.js
|
|---app
| |---controller
| |---model
| |---store
| |---ux
| |---view
|---index.html
然后在app.js中,在调用应用程序之前,我先连接"ux":
Then in app.js, before calling the application I connect 'ux':
Ext.Loader.setConfig({enabled:true});
Ext.Loader.setPath('Ext.ux', 'app/ux');
Ext.application({
....
我得到了错误:
[Ext.Loader]同步加载'widget.treepicker';考虑 在Ext.onReady之上添加Ext.require('widget.treepicker')
[Ext.Loader] Synchronously loading 'widget.treepicker'; consider adding Ext.require('widget.treepicker') above Ext.onReady
版本:Ext JS 6.2.0.981-JavaScript库
Version: Ext JS 6.2.0.981 - JavaScript Library
我做错了什么? 如何增加UX? 谢谢.
What am I doing wrong? How to incldue UX? Thanks.
推荐答案
尝试将其添加到app.js文件中
try adding this in the app.js file
requires:[
'Ext.ux.your_file_name' //your_file_name inside the ux folder
]
这篇关于无法在Ext JS应用程序中包含ux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!