diff --git a/docs/javascript.html b/docs/javascript.html index 4d90dbcf..1cba7766 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -724,7 +724,7 @@ $('a[data-toggle="tab"]').on('shown', function (e) {
$(".alert-message").alert('close')
Bootstrap's alert class exposes a few events for hooking into alert functionality.
-| Event | @@ -1021,29 +1021,32 @@ $('#myCollapsible').on('hidden', function () {
|---|
| Name | +type | +default | +description | +
|---|---|---|---|
| interval | +number | +5000 | +The amount of type to delay between automatically cycling an item. | +
Data attributes are integral to the carousel plugin. Check out the example code below for the various markup types.
<div class="thumbnail carousel">
<!-- items -->
- <div class="carousel-inner">
- <div class="item active">
- <img src="http://placehold.it/1100x350">
- <div class="caption">
- <h5>Thumbnail label</h5>
- <p>Cras justo odio, dapibus ac facilisis in, egestas eget quam. </p>
- </div>
- </div>
-
- <div class="item">
- <img src="http://placehold.it/1100x350">
- <div class="caption">
- <h5>Thumbnail label</h5>
- <p>Donec id elit non mi porta gravida at eget metus.</p>
- </div>
- </div>
- </div>
+ <div class="carousel-inner">…</div>
<!-- navigation -->
<a class="nav" href="#myCarousel" data-slide="next"><</a>
@@ -1051,6 +1054,21 @@ $('#myCollapsible').on('hidden', function () {
</div>
+Initializes the carousel with an optional options object and starts cycling through items.
+$('.myCarousel').carousel({
+ interval: 2000
+})
+Cycles through the carousel items from left to right.
+Stops the carousel from cycling through items.
+Cycles to the previous item.
+Cycles to the next item.