Jeff Pihach![]()
This Y.App extension adds two custom events, two callbacks, and related configuration attributes to give you the ability to easily create loading sequences in your application for long running models, view renderings, etc.
The loading sequence will start automatically on navigate or view change but you can also trigger it manually by firing 'loading' or stop the sequence by firing 'loadingComplete'
<script src="http://yui.yahooapis.com/3.5.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.09-20-27'
}).use('app', 'gallery-app-loading', function(Y) {
App = Y.Base.create('my-long-loading-app', Y.App, [Y.AppLoading], {
// Called when the loading sequence has started
startLoadingSequence: function() {},
// Called after the loading sequence has stopped
stopLoadingSequence: function() {}
});
});
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info