mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
remove tabbable tabs on left, right, and bottom; instead, from here out use stacked pills or tabs
This commit is contained in:
-153
@@ -791,159 +791,6 @@
|
||||
</ul>
|
||||
</pre>
|
||||
|
||||
|
||||
<hr class="bs-docs-separator">
|
||||
|
||||
|
||||
<h2>{{_i}}Tabbable nav{{/i}}</h2>
|
||||
<p>{{_i}}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.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Tabbable example{{/i}}</h3>
|
||||
<p>{{_i}}To make tabs tabbable, create a <code>.tab-pane</code> with unique ID for every tab and wrap them in <code>.tab-content</code>.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable" style="margin-bottom: 18px;">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
<li><a href="#tab2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
|
||||
<li><a href="#tab3" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
|
||||
</ul>
|
||||
<div class="tab-content" style="padding-bottom: 9px; border-bottom: 1px solid #ddd;">
|
||||
<div class="tab-pane active" id="tab1">
|
||||
<p>{{_i}}I'm in Section 1.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab2">
|
||||
<p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab3">
|
||||
<p>{{_i}}What up girl, this is Section 3.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab1" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
<li><a href="#tab2" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="tab1">
|
||||
<p>{{_i}}I'm in Section 1.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab2">
|
||||
<p>{{_i}}Howdy, I'm in Section 2.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h4>{{_i}}Fade in tabs{{/i}}</h4>
|
||||
<p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
|
||||
|
||||
<h4>{{_i}}Requires jQuery plugin{{/i}}</h4>
|
||||
<p>{{_i}}All tabbable tabs are powered by our lightweight jQuery plugin. Read more about how to bring tabbable tabs to life <a href="./javascript.html#tabs">on the JavaScript docs page</a>.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Tabbable in any direction{{/i}}</h3>
|
||||
|
||||
<h4>{{_i}}Tabs on the bottom{{/i}}</h4>
|
||||
<p>{{_i}}Flip the order of the HTML and add a class to put tabs on the bottom.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-below">
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="A">
|
||||
<p>{{_i}}I'm in Section A.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="B">
|
||||
<p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="C">
|
||||
<p>{{_i}}What up girl, this is Section C.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#A" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
<li><a href="#B" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
|
||||
<li><a href="#C" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
|
||||
</ul>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-below">
|
||||
<div class="tab-content">
|
||||
...
|
||||
</div>
|
||||
<ul class="nav nav-tabs">
|
||||
...
|
||||
</ul>
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h4>{{_i}}Tabs on the left{{/i}}</h4>
|
||||
<p>{{_i}}Swap the class to put tabs on the left.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-left">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#lA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
<li><a href="#lB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
|
||||
<li><a href="#lC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="lA">
|
||||
<p>{{_i}}I'm in Section A.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="lB">
|
||||
<p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="lC">
|
||||
<p>{{_i}}What up girl, this is Section C.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-left">
|
||||
<ul class="nav nav-tabs">
|
||||
...
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
<h4>{{_i}}Tabs on the right{{/i}}</h4>
|
||||
<p>{{_i}}Swap the class to put tabs on the right.{{/i}}</p>
|
||||
<div class="bs-docs-example">
|
||||
<div class="tabbable tabs-right">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#rA" data-toggle="tab">{{_i}}Section 1{{/i}}</a></li>
|
||||
<li><a href="#rB" data-toggle="tab">{{_i}}Section 2{{/i}}</a></li>
|
||||
<li><a href="#rC" data-toggle="tab">{{_i}}Section 3{{/i}}</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div class="tab-pane active" id="rA">
|
||||
<p>{{_i}}I'm in Section A.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="rB">
|
||||
<p>{{_i}}Howdy, I'm in Section B.{{/i}}</p>
|
||||
</div>
|
||||
<div class="tab-pane" id="rC">
|
||||
<p>{{_i}}What up girl, this is Section C.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> <!-- /tabbable -->
|
||||
</div>{{! /example }}
|
||||
<pre class="prettyprint linenums">
|
||||
<div class="tabbable tabs-right">
|
||||
<ul class="nav nav-tabs">
|
||||
...
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
...
|
||||
</div>
|
||||
</div>
|
||||
</pre>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
|
||||
+1
@@ -623,6 +623,7 @@ $('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)
|
||||
<li><a href="#messages" data-toggle="tab">{{_i}}Messages{{/i}}</a></li>
|
||||
<li><a href="#settings" data-toggle="tab">{{_i}}Settings{{/i}}</a></li>
|
||||
</ul></pre>
|
||||
<p>{{_i}}To make tabs fade in, add <code>.fade</code> to each <code>.tab-pane</code>.{{/i}}</p>
|
||||
|
||||
<h3>{{_i}}Methods{{/i}}</h3>
|
||||
<h4>$().tab</h4>
|
||||
|
||||
Reference in New Issue
Block a user