Where copy Extjs 6.0 new `ux` classes?

两盒软妹~` 提交于 2019-12-11 12:04:17

问题


I'm developing web application using Extjs 6.0.1. I developed an class as follow:

Ext.define('Admin.view.main.Me', {
   extend: 'Ext.panel.Panel',
   xtype: 'ud_mf',
   .
   .
   .
});

Now I want to publish it as ux. In Extjs 6.0.0 I don't know where direction copy my class. My workspace direction is as follow:

.sencha
Admin
build
ext
packages
workspace.json

What do I do?


回答1:


  1. Create a Folder named Ux and this in root directory
  2. Add all code there with namespace Ux
  3. Add this Folder in app.json in this code

    "classpath": [
    "app",
    "Ux", // this is your folder
    "${toolkit.name}/src"
    ],
    
  4. In app.js file add in requires like 'Ux.*'

  5. Build your project and run


来源:https://stackoverflow.com/questions/33979842/where-copy-extjs-6-0-new-ux-classes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!