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 50 more by this user. Created: 03/17/10
Last CDN Push: 05/16/12
Build Tag: gallery-2012.05.16-20-37
Project: YUI 3
License: YUI BSD
YUI Version: 3.5.1
Free for use.
Worst case scenario: You have a table with several columns of dates. You switch to "quick edit" mode which displays an input field for each date. When the user clicks on a field, a popup calendar provides the option to select a date by clicking (in addition to typing in the field). Obviously, the popups are created on demand, but after the user has modified the contents of most of the fields, you are still left with a large number of calendars that need to be disposed of when the user saves or cancels and switches back to display mode.
The Chipper solves this problem for you. Simply dump all the calendars into the Chipper, and it will destroy them, one a time, in the background, without freezing the page.
Create an object that implements destroy and then toss it in the chipper.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.16-20-37'
}).use('gallery-chipper', function(Y)
{
var plank =
{
destroy: function() { alert('spizz!'); }
};
Y.Chipper.destroy(plank);
});
No forum posts for this module.
All code on this site is licensed under the BSD License unless stated otherwise.