PDA

View Full Version : Loader 'load' event not completing



drunkmoose
5 Jun 2014, 10:41 AM
I'm trying to add a listener to ComponentLoader's load event, but when I do so, the panel doe not render the data I'm trying to load via an URL. It's like the event is aborted when I do so.
I'm sure I need to call the parent method or something like that but this.callParent(arguments)nor this.callSuper() worked.

Here is the panel:

Ext.define('Customer_Portal_UI.view.NavigationMenu', {
extend: 'Ext.form.Panel',
alias: 'widget.navigationmenu',
region: 'west',
layout: 'fit',
ui: 'cssmenu',
loader: {
autoLoad: true,
url: 'resources/leftmenu.html',
load: function () {

}


}
});

Any ideas ? And will this work ? Is the load event really triggered only when the .html file is done loading ?

drunkmoose
6 Jun 2014, 7:35 AM
I have found a design workaround so for the moment being, I can do without knowing why this is such.