ExtJS 4到ExtJS 5迁移 [英] ExtJS 4 to ExtJS 5 migration
问题描述
我们正在将一个Web应用程序从 ExtJS 4 迁移到 ExtJS 5 。
We are migrating a web application from ExtJS 4 to ExtJS 5.
测试 index.html 导致以下错误(由 Firefox-FireBug控制台输出):
Testing the index.html results in the following error (outputted by the Firefox-FireBug-console):
NetworkError: 404 Not Found - http://localhost:8080/ext/build/examples/ux/grid/FiltersFeature.js?_dc=1414147197935
我已经在目录中搜索了 FilterFeatures.js -file,但不存在。
I have already searched for the FilterFeatures.js-file inside the directory, but it isn't there.
根据ExtJS 5.0中的新功能-site 这个文件是如此受欢迎,他们认为移动它是明智的。
According to the "Whats New in ExtJS 5.0"-site this file was so popular, that they thought it would be wise to move it.
有人可以告诉我如何包括这个文件或功能,以便错误消失?
我已经尝试将以下内容添加到我的app.js文件中:
I have already tried to add the following to my app.js file:
Ext.Loader.setPath('Ext.ux', './ext/build/examples/ux');
Ext.application({
...
requires: [
'Ext.ux.grid.FiltersFeature'
],
...
});
但错误仍然存在。我想我需要获得一个对的引用,该对象现在被隐藏在别的地方。
But the error persists. I think i need to get a reference to an object that is now hidden somewhere else.
我只是不知道如何引用它,因为我不知道现在放置的js文件,以及如何在Ext JS 5中语法正确。 / p>
I just dont know how to reference it, because i dont know the js-file it is now placed in and how to do it syntactically correct in Ext JS 5.
推荐答案
基本信息在您提供的链接中:
The basics are in the link you provided:
- 他们删除了功能
Ext.ux.grid.FiltersFeature
(ftype:filters)。 - 他们引入了一个插件
Ext.grid.filters.Filters
(ptype:gridfilters)
作为增强替换
- They removed the feature
Ext.ux.grid.FiltersFeature
(ftype: filters). - They introduced a plugin
Ext.grid.filters.Filters
(ptype: gridfilters)
as an enhanced replacement.
所以您将不得不手动重新编排网格,以使用新插件,而不是旧功能。
So you will have to rework your grids manually to use the new plugin instead of the old feature.
祝你好运。
这篇关于ExtJS 4到ExtJS 5迁移的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!