Tabgroup updates
Last Friday I received an updated version of my javascript Tabgroup widget (Project dead and gone) from the kind soul Dov Katz. I don’t know who he is but his extensions are useful and so I added them to the new version 1.1.
Currently there is a problem or a weird behaviour with tab text colors. When focus changes between different tabs they have their css classes toggled. This seems to ruin the style associated with the tab.
The functions added by Dov Katz are
- addEx(id,title) Add and display a new tab, after you\’ve already drawn them. Add an existing Div/node with an id, or make up a new id, and it will generate a new elemeent with that ID
- removeEx(id) Remove a new tab after display
- setTabForeground(id,color) Set foreground text for a tab
- onTabFocusGained(id) Callback to re-map for handling focus gains. Right now default action is to set foreground of tab link to black;
- onTabFocusLost(id) Callback to re-map for handling focus loss. Right now default action is to set foreground of tab link to black;
- setTitle(id,title) Set a tab title
Many thanks to Dov Katz.
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
