EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Tareq on January 06, 2013, 07:01:03 PM



Title: how to use EasyLoader's onLoad Event
Post by: Tareq on January 06, 2013, 07:01:03 PM
Hi,

Could any one please help me about how can I use easyloader's onLoad event with some example code?

In doc it's not clear for me.... Please provide example use....


Title: Re: how to use EasyLoader's onLoad Event
Post by: stworthy on January 07, 2013, 06:27:35 PM
Here is the example using 'onLoad' event.
Code:
easyloader.onLoad = function(name){
console.log(name);
};
using('calendar', function(){
$('#cc').calendar({
width:180,
height:180
});
});


Title: Re: how to use EasyLoader's onLoad Event
Post by: Tareq on January 07, 2013, 08:29:16 PM
It works. Thanks.