|
gTab
One-sentence summary of this page.
gTab is a tab widget (you are using it right now to read this content!) to conveniently group inline content or, if a url is avalaible, ajax content. You create a div tag with the class 'gtab' with the following structure: <div id="mytabid" class="gtab" > <ul> <li><a href="#container">My Tab title</a></li> <li><a href="ajaxurl.html#container2">2nd Tab</a></li> <li><a href="#container3">3rd Tab</a></li> <ul> <div id="container"> here is my inline content </div> <div id="container2"> </div> <div id="container3"> here is my inline content for my third tab </div> </div> Notes: For the href attribute you must at least specify the #container name which specify the if of the tab to show. If you specify a url before the #container, then the tab will do an XHR (ajax) request to get the content and input it inside the container. As usual you can change the css to get your own look-and-feel. |
Sign in to add a comment