Yehuda Katz schrieb:
> I've done a bunch of Accordion implementations for various projects,
> but never codified them into a single plugin. I suspect it could be
> done with much less code than some of the existing implementations.
> What are the requirements for a totally abstracted accordion plugin?
It should rely on a certain hierachical structure, instead of any
concrete elements. That way it could treat these just the same:
<dl class="accordion">
<dt>Title</dt>
<dd>Content</dd>
</dl>
<div class="accordion">
<h2>Title</h2>
<p>Content</p>
</div>
It should allow customization of animations, to an extend that it allows
to specify wheather show and hide animations should be run at the same
time or should be queued.
It should accept event listeners for changes in the accordion, like
click, show or hide. Best would be to use jQuery's event system for this
instead of custom callbacks. This is more of an implementation detail,
but I think it's an important one.
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/