-
Answered: ExtJS desktop example (4.1.1)
Answered: ExtJS desktop example (4.1.1)
I have tried to use App.js instead of classes.js in http://dev.sencha.com/deploy/ext-4.1...p/desktop.html example however it didn't work. Is there any tutorial on how to customize the desktop example?
-
Best Answer Posted by
Kangulo
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
-
Sencha - Support Team
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.
-
Sencha User
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
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us