Collapsable
This little shortcut is kind of like a one item accordion. It assigns a click event to an element that, when clicked, hides another (using Fx.Reveal).
new Collapsable($('clicker'), $('section'));

Note that this is similar to Fx.Slide (and indeed it could use Fx.Slide instead of Fx.Reveal for much the same result). The key difference is that it takes the clicker to which it should attach the toggle functionality.
cnet-libraries/08-layout/0.1-collapsable.txt · Last modified: 2008/11/17 23:25