问题
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:
- Create a Folder named Ux and this in root directory
- Add all code there with namespace Ux
Add this Folder in app.json in this code
"classpath": [ "app", "Ux", // this is your folder "${toolkit.name}/src" ],
In app.js file add in requires like 'Ux.*'
- Build your project and run
来源:https://stackoverflow.com/questions/33979842/where-copy-extjs-6-0-new-ux-classes