Introduction of KSS Opener
After installation product offers following event:
opener-selector:opener-init {
evt-init-elementSelector: element-selector;
}
All elements that matches opener-selector will get controller that will offer expand/collapse functionality with mouse click.
Real-life example is:
.term:opener-init {
evt-init-elementSelector: '.details';
}
and having HTML code:
<div class="term">
History
<div class="details">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
iaculis eros eu purus. Integer accumsan leo id lorem viverra vulputate.
Donec feugiat nunc molestie massa nonummy pulvinar. Proin porta pede
sit amet lectus. Duis leo urna, tempor non, condimentum condimentum,
commodo non, libero. Integer feugiat, pede at.
</div>
</div>
will produce into something like:
If you do not see a flash movie above, see original post.



<div class="term"> ?
It would be even cooler if it followed in plone's footsteps and used semantic markup and rather did something like:
<dl>
<dt>History</dt>
<dd>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum
iaculis eros eu purus. Integer accumsan leo id lorem viverra vulputate.
Donec feugiat nunc molestie massa nonummy pulvinar. Proin porta pede
sit amet lectus. Duis leo urna, tempor non, condimentum condimentum,
commodo non, libero. Integer feugiat, pede at.
</dd>
</dl>
<div class="term" is a bit like <div class="header2" and div class="paragraph"
;)