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 28 more by this user. Created: 06/24/10
Last CDN Push: 09/8/10
Build Tag: gallery-2010.09.08-19-45
Project: YUI 3
License: YUI BSD
YUI Version: 3.7.3
Free for use.
Moving to 'gallery-xarno-plugin-collapse' and Y.Xarno.Plugin.Collapse
This simple, yet powerful, plugin gives you the ability to collapse and expand a node.
This sample will plug the div then animate it closed. After 4 seconds (3.5 after the default .5 duration passes) the div will animate open again.
<script src="http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js"></script>
<div id="collapsable" style="border:1px solid red;">
<h1>Collapse Plugin Demo</h1>
<p>Nunc a urna sed nibh semper sollicitudin in ut risumi tincidunt nec sodales libero condimentum.</p>
</div>
<script>
YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.09.08-19-45'
}).use('gallery-plugin-collapse', 'node', function(Y){
var n = Y.one('#collapsable');
n.plug(Y.Plugin.Collapse);
n.collapse.close();
Y.later(4000, n, function(){ n.collapse.open();});
});
</script>
Subject | Author | Date |
---|---|---|
Standardizing apipkin Modules | Anthony Pipkin | 10/16/12 |
Re: Standardizing apipkin Modules | Juan Ignacio Dopazo | 11/3/12 |
All code on this site is licensed under the BSD License unless stated otherwise.