samedi 7 juin 2014

How to compile using ux namespace?

I'm using SA 3 and want to use FilterBar plugin.

First of all:

Where should I put FilterBar.js if Ext.ux.grid.FilterBar class is defined inside? To {build_apth}/ext/src/ux/grid? Or should I create some folder down to {build_apth} like {build_apth}/js/ux and make there corresponding structure like {build_apth}/js/ux/grid and put plugin into it?

Second:

How to compile app with all required files from ux folder?

In my view there is a code:


Code:



requires: [
'Ext.grid.View',
'Ext.grid.column.Number',
'Ext.form.field.ComboBox',
'Ext.grid.column.Date',
'Ext.toolbar.Paging',
'Ext.toolbar.Fill',
'Ext.button.Button',
'Ext.grid.plugin.RowEditing',
'Ext.ux.grid.FilterBar'
],

If I put extra files to {build_apth}/ext/src/ux/... then command:


Code:



sencha compile page -i index.html -o output.html

Throws:


Code:



[ERR] C2008: Requirement had no matching files (Ext.ux.grid.FilterBar)

But in development mode FilterBar loads dynamicly from /ext/src/ux/grid/FilterBar.js

If I put extra files to {build_apth}/js/ux/... then command:


Code:



sencha compile -classpath=js/ux page -i index.html -o output.html

and


Code:



sencha compile -classpath=js/ux/grid/FilterBar.js page -i index.html -o output.html

Throws the same:


Code:



[ERR] C2008: Requirement had no matching files (Ext.ux.grid.FilterBar)

How to deal with such situation using SA and Sencha CMD?


Aucun commentaire:

Enregistrer un commentaire