I've hacked the tabs.js file (I install it as tabsfix.js) to add "toggle" and "toggle-each" effects intended for accordions (as well as parameters for slideUpSpeed and slideDownSpeed).
I call it a hack because it doesn't deal with a more basic design issue namely that the following parameters should be separated:
- orientation: "vertical", "horizontal"
- effect: as listed, not including "horizontal"
- mode: "default" (ie. standard), "toggle","toggle-each"
So this is just a kind of prototype.
Anyone interested can try it out with http://pastie.org/1421642 .
Tero, I hope you will find this helpful as you contemplate the next version of tabs.
Best,
- Henrik
PS, I also think the api should include
- expand (open all tabs), and
- collapse (close all tabs)
I call it a hack because it doesn't deal with a more basic design issue namely that the following parameters should be separated:
- orientation: "vertical", "horizontal"
- effect: as listed, not including "horizontal"
- mode: "default" (ie. standard), "toggle","toggle-each"
So this is just a kind of prototype.
Anyone interested can try it out with http://pastie.org/1421642 .
Tero, I hope you will find this helpful as you contemplate the next version of tabs.
Best,
- Henrik
PS, I also think the api should include
- expand (open all tabs), and
- collapse (close all tabs)