PDA

View Full Version : Need an event to check all sencha files are loaded



chinj
2 Mar 2011, 5:02 AM
In Jquery, it has a function like this :



$(document).ready( function(){
.....
.....
});


Any one know a function in Sencha like this.

StuartAshworth
2 Mar 2011, 7:22 AM
Ext.setup({
tabletStartupScreen: 'resources/img/tablet_startup.png',
phoneStartupScreen: 'resources/img/phone_startup.png',
icon: 'resources/img/icon.png',
glossOnIcon: false,

onReady: function() {
// your startup code here
}
});


Put your code inside the onReady function which will execute after everything is loaded and ready.