From 93d42ca80e7f100f7543a9689ae80de51b978eae Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 28 Mar 2012 17:35:06 -0700 Subject: fix #2832: clarify docs on use of .tabbable and add mention of .fade --- docs/components.html | 52 ++++++++++++++++++++++++++++------------------------ 1 file changed, 28 insertions(+), 24 deletions(-) (limited to 'docs/components.html') diff --git a/docs/components.html b/docs/components.html index 7854df523..66f62329a 100644 --- a/docs/components.html +++ b/docs/components.html @@ -779,54 +779,58 @@

What's included

Bring your tabs to life with a simple plugin to toggle between content via tabs. Bootstrap integrates tabbable tabs in four styles: top (default), right, bottom, and left.

Changing between them is easy and only requires changing very little markup.

+
+

Fade in tabs

+

To make tabs fade in, add .fade to each .tab-pane.

+
+

Requires jQuery plugin

+

All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.

+

Get the javascript →

-
+

Tabbable example

-

To make tabs tabbable, wrap the .nav-tabs in another div with class .tabbable.

-
+

To make tabs tabbable, create a .tab-pane with unique ID for every tab and wrap them in .tab-content.

+
-
-
+
+

I'm in Section 1.

-
+

Howdy, I'm in Section 2.

-
+

What up girl, this is Section 3.

-
-
-

Custom jQuery plugin

-

All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life on the javascript docs page.

-

Get the javascript →

-
-
+

For right or left aligned tabs, wrap the .nav-tabs and .tab-content in .tabbable.

-

Straightforward markup

-

Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.

+

Straightforward markup

+

Using tabbable tabs requires a wrapping div, a set of tabs, and a set of tabbable panes of content.

-<div class="tabbable">
+<div class="tabbable"> <-- Only required for left/right tabs -->
   <ul class="nav nav-tabs">
-    <li class="active"><a href="#1" data-toggle="tab">Section 1</a></li>
-    <li><a href="#2" data-toggle="tab">Section 2</a></li>
+    <li class="active"><a href="#tab1" data-toggle="tab">Section 1</a></li>
+    <li><a href="#tab2" data-toggle="tab">Section 2</a></li>
   </ul>
   <div class="tab-content">
-    <div class="tab-pane active" id="1">
+    <div class="tab-pane active" id="tab1">
       <p>I'm in Section 1.</p>
     </div>
-    <div class="tab-pane" id="2">
+    <div class="tab-pane" id="tab2">
       <p>Howdy, I'm in Section 2.</p>
     </div>
   </div>
 </div>
 
+
+
+

Tabbable in any direction

-- cgit v1.2.3