//to Enable the Loading mask write this code in starting of your task
AUI().use( 'aui-loading-ma sk', function(A){
if (A.one('#tagid').load ingmask == null)
A.one('#tagid').plug( A.LoadingMask, { background: '#000' });
A.one('#tagid').loadi ngmask.toggle() ;
});
//to Disable the loading mask once again call the toggle(); , write this after compleation of your task
AUI().use( 'aui-loading-ma sk', function(A){
Note : Here #tagid is id of the tag where you want to display loading mask
AUI().use( 'aui-loading-ma
if (A.one('#tagid').load
A.one('#tagid').plug(
A.one('#tagid').loadi
});
//to Disable the loading mask once again call the toggle(); , write this after compleation of your task
AUI().use( 'aui-loading-ma
A.one('#tagid').loadi ngmask.toggle() ;
});
});
Note : Here #tagid is id of the tag where you want to display loading mask
4 comments:
Cool, finally a working example of adding a loading mask to a node! Thanks, this made my hour!
Welcome bro
How can I dynamically change the loading string which we configure as
strings: {
loading: "Hello World"
}
I want to change it dynamically from javascript code.nstrmu
Hi Asif,
In the above code the loading String which you are getting is Gif default image given by Liferay. you can use your own image for that rather than using default image
Post a Comment