@@ -1332,6 +1331,108 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -1332,6 +1331,108 @@ For example, <code><section></code> should be wrapped as inline.
</tr>
</tr>
{% endhighlight %}
{% endhighlight %}
<h2id="tables-responsive">Responsive tables</h2>
<p>Create responsive tables by wrapping any <code>.table</code> in <code>.table-responsive</code> to make them scroll horizontally up to small devices (under 768px).</p>
<divclass="bs-example">
<divclass="table-responsive">
<tableclass="table">
<thead>
<tr>
<th>#</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>2</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>3</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>
</div><!-- /.table-responsive -->
<divclass="table-responsive">
<tableclass="table table-bordered">
<thead>
<tr>
<th>#</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
<th>Table heading</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>2</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
<tr>
<td>3</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
<td>Table cell</td>
</tr>
</tbody>
</table>
</div><!-- /.table-responsive -->
</div><!-- /example -->
{% highlight html %}
<divclass="table-responsive">
<tableclass="table">
...
</table>
</div>
{% endhighlight %}
</div>
</div>
...
@@ -2117,7 +2218,7 @@ For example, <code><section></code> should be wrapped as inline.
...
@@ -2117,7 +2218,7 @@ For example, <code><section></code> should be wrapped as inline.
<pclass="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
<pclass="lead">For faster mobile-friendly development, use these utility classes for showing and hiding content by device via media query. Also included are utility classes for toggling content when printed.</p>
<p>We've made many underlying changes in v3 that are not immediately apparent without closer inspection. Base classes, key styles, and behaviors have been adjusted for flexibility and our mobile first approach.</p>
<p>We've made many underlying changes in v3 that are not immediately apparent without closer inspection. Base classes, key styles, and behaviors have been adjusted for flexibility and our mobile first approach.</p>
@@ -240,7 +240,7 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -240,7 +240,7 @@ $('#myModal').on('show.bs.modal', function (e) {
<h3>Options</h3>
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-backdrop=""</code>.</p>
<divclass="bs-table-scrollable">
<divclass="table-responsive">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
...
@@ -280,7 +280,7 @@ $('#myModal').on('show.bs.modal', function (e) {
...
@@ -280,7 +280,7 @@ $('#myModal').on('show.bs.modal', function (e) {
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div><!-- /.bs-table-scrollable -->
</div><!-- /.table-responsive -->
<h3>Methods</h3>
<h3>Methods</h3>
...
@@ -306,7 +306,7 @@ $('#myModal').modal({
...
@@ -306,7 +306,7 @@ $('#myModal').modal({
<h3>Events</h3>
<h3>Events</h3>
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
<p>Bootstrap's modal class exposes a few events for hooking into modal functionality.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
$('#myTooltip').on('hidden.bs.tooltip', function () {
$('#myTooltip').on('hidden.bs.tooltip', function () {
// do something…
// do something…
...
@@ -1036,7 +1036,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
...
@@ -1036,7 +1036,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
<h3>Options</h3>
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-animation=""</code>.</p>
<divclass="bs-table-scrollable">
<divclass="table-responsive">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
...
@@ -1109,7 +1109,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
...
@@ -1109,7 +1109,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div><!-- /.bs-table-scrollable -->
</div><!-- /.table-responsive -->
<divclass="bs-callout bs-callout-info">
<divclass="bs-callout bs-callout-info">
<h4>Data attributes for individual popovers</h4>
<h4>Data attributes for individual popovers</h4>
<p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
<p>Options for individual popovers can alternatively be specified through the use of data attributes, as explained above.</p>
...
@@ -1138,7 +1138,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
...
@@ -1138,7 +1138,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
@@ -1165,7 +1165,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
...
@@ -1165,7 +1165,7 @@ $('#myTooltip').on('hidden.bs.tooltip', function () {
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div><!-- /.bs-table-scrollable -->
</div><!-- /.table-responsive -->
{% highlight js %}
{% highlight js %}
$('#myPopover').on('hidden.bs.popover', function () {
$('#myPopover').on('hidden.bs.popover', function () {
// do something…
// do something…
...
@@ -1222,7 +1222,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
...
@@ -1222,7 +1222,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
<h3>Events</h3>
<h3>Events</h3>
<p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p>
<p>Bootstrap's alert class exposes a few events for hooking into alert functionality.</p>
<divclass="bs-table-scrollable">
<divclass="table-responsive">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
...
@@ -1241,7 +1241,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
...
@@ -1241,7 +1241,7 @@ $('#myPopover').on('hidden.bs.popover', function () {
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div><!-- /.bs-table-scrollable -->
</div><!-- /.table-responsive -->
{% highlight js %}
{% highlight js %}
$('#my-alert').bind('closed.bs.alert', function () {
$('#my-alert').bind('closed.bs.alert', function () {
// do something…
// do something…
...
@@ -1528,7 +1528,7 @@ $(".collapse").collapse()
...
@@ -1528,7 +1528,7 @@ $(".collapse").collapse()
<h3>Options</h3>
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-parent=""</code>.</p>
$('#myCollapsible').on('hidden.bs.collapse', function () {
$('#myCollapsible').on('hidden.bs.collapse', function () {
// do something…
// do something…
...
@@ -1752,7 +1752,7 @@ $('.carousel').carousel()
...
@@ -1752,7 +1752,7 @@ $('.carousel').carousel()
<h3>Options</h3>
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-interval=""</code>.</p>
<divclass="bs-table-scrollable">
<divclass="table-responsive">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
...
@@ -1783,7 +1783,7 @@ $('.carousel').carousel()
...
@@ -1783,7 +1783,7 @@ $('.carousel').carousel()
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div><!-- /.bs-table-scrollable -->
</div><!-- /.table-responsive -->
<h3>Methods</h3>
<h3>Methods</h3>
...
@@ -1813,7 +1813,7 @@ $('.carousel').carousel({
...
@@ -1813,7 +1813,7 @@ $('.carousel').carousel({
<h3>Events</h3>
<h3>Events</h3>
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
<divclass="bs-table-scrollable">
<divclass="table-responsive">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
...
@@ -1832,7 +1832,7 @@ $('.carousel').carousel({
...
@@ -1832,7 +1832,7 @@ $('.carousel').carousel({
</tr>
</tr>
</tbody>
</tbody>
</table>
</table>
</div><!-- /.bs-table-scrollable -->
</div><!-- /.table-responsive -->
{% highlight js %}
{% highlight js %}
$('#myCarousel').on('slide.bs.carousel', function () {
$('#myCarousel').on('slide.bs.carousel', function () {
// do something…
// do something…
...
@@ -1888,7 +1888,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
...
@@ -1888,7 +1888,7 @@ $('#myCarousel').on('slide.bs.carousel', function () {
<h3>Options</h3>
<h3>Options</h3>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
<p>Options can be passed via data attributes or JavaScript. For data attributes, append the option name to <code>data-</code>, as in <code>data-offset-top="200"</code>.</p>
<divclass="bs-table-scrollable">
<divclass="table-responsive">
<tableclass="table table-bordered table-striped">
<tableclass="table table-bordered table-striped">
<thead>
<thead>
<tr>
<tr>
...
@@ -1907,6 +1907,6 @@ $('#myCarousel').on('slide.bs.carousel', function () {
...
@@ -1907,6 +1907,6 @@ $('#myCarousel').on('slide.bs.carousel', function () {