Open GoogleCodeExporter opened 9 years ago
This enhancement was even more trivial then thought: the ExtJS
xtype/Ext.create() mechanism can be used i.s.o. some Heron-specific syntax. So
the first example also is working (apart from authorization with Boundless
GeoServer). See
http://lib.heron-mc.org/heron/latest/examples/appgxpviewer
Basically 2 things are needed:
* register an App class, this has been done for gxp.Viewer already i.e.
Ext.reg('gxp_viewer', gxp.Viewer);
* create a Config for your app according to the App class convention
In the above example this is
http://lib.heron-mc.org/heron/latest/examples/appgxpviewer/Config.js
The convention is simply:
Heron.app = {
// The app type, ExtJS class, some registered in Heron already via
// for example Ext.reg('gxp_viewer', gxp.Viewer);
xtype: <your_app_xtype>
// your app's config, as will be passed to your app's constructor
};
Will add some more examples and documentation before closing, as it should also
be made more clear.
Original comment by jus...@gmail.com
on 13 Mar 2014 at 2:22
Original comment by jus...@gmail.com
on 14 Apr 2014 at 2:44
Original issue reported on code.google.com by
jus...@gmail.com
on 13 Mar 2014 at 12:45