How do you include a UX class in the MVC pattern?

前端 未结 5 1219
陌清茗
陌清茗 2020-12-30 09:01

Before the MVC pattern I would include UX classes simply by including this at the top of the JS, before Ext.onReady:

Ext.Loader.setConfig({enabl         


        
5条回答
  •  被撕碎了的回忆
    2020-12-30 09:37

    This sounds like a problem with the path that the Ext.ux.grid.FiltersFeature file lies in. Can you check what the URL for the request that resulted in the 404 is? That should give you a clue as to where to place the Ext.ux.grid.FiltersFeature for it to be automatically loaded.

    Here is an example of the directory structure that I am using and where the ux classes are.

    js
    |---app.js
    |
    |---app
    |    |---controller
    |    |---model
    |    |---store
    |    +---view
    |
    +---ux
         |---form
         +---layout
    

    Basically, the namespacing will follow the directory structure.

提交回复
热议问题