PDA

View Full Version : ExtJS desktop example (4.1.1)



darkhorni
18 Jul 2012, 3:52 AM
I have tried to use App.js instead of classes.js in http://dev.sencha.com/deploy/ext-4.1.0-gpl/examples/desktop/desktop.html example however it didn't work. Is there any tutorial on how to customize the desktop example?

scottmartin
18 Jul 2012, 9:16 PM
I am not sure I understand your question ...

App.js is the main app that loads each file individually
all-classes.js is the compiled version that loads in 1 file built using SDK.. see app.jsb3

Scott.

Kangulo
3 Jan 2013, 7:23 PM
In desktop.html
comment this line
<!--<script type="text/javascript" src="all-classes.js"></script>-->

<script type="text/javascript">
Ext.Loader.setPath({
'Ext.ux.desktop': 'js',
MyDesktop: ''
});

Ext.require('MyDesktop.App');

var myDesktopApp;
Ext.onReady(function () {
myDesktopApp = new MyDesktop.App();
});
</script>

And after that you can play with the files BogusModule.js, GridWindows.js, etc and other files

Regards