The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 3 more by this user. Created: 04/11/12
Last CDN Push: 05/9/12
Build Tag: gallery-2012.05.09-20-27
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.0
Free for use.
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() {}
});
});
All code on this site is licensed under the BSD License unless stated otherwise.