Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <otto@github.com>2014-01-27 21:24:51 +0400
committerMark Otto <otto@github.com>2014-01-27 21:24:51 +0400
commite08e871f01fd8848101e152c9afdd758280de27d (patch)
tree262596ff1931b47252696678b17aaa116769d45f /docs/javascript.html
parent50ad304bb52b344828352e888b6f8ddc042ba176 (diff)
document id requirement in carousels per #12393
Diffstat (limited to 'docs/javascript.html')
-rw-r--r--docs/javascript.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/javascript.html b/docs/javascript.html
index 7d41a0378a..225f48daba 100644
--- a/docs/javascript.html
+++ b/docs/javascript.html
@@ -1923,6 +1923,9 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
<h2 id="carousel-usage">Usage</h2>
+ <h3>Multiple carousels</h3>
+ <p>Carousels require the use of an <code>id</code> on the outter most container, <code>.carousel</code>, for carousel controls to properly function. When adding multiple carousels, or when changing a carousel's <code>id</code>, be sure to update the relevant controls.</p>
+
<h3>Via data attributes</h3>
<p>Use data attributes to easily control the position of the carousel. <code>data-slide</code> accepts the keywords <code>prev</code> or <code>next</code>, which alters the slide position relative to its current position. Alternatively, use <code>data-slide-to</code> to pass a raw slide index to the carousel <code>data-slide-to="2"</code>, which shifts the slide position to a particular index beginning with <code>0</code>.</p>
<p>The <code>data-ride="carousel"</code> attribute is used to mark a carousel as animating starting at page load.</p>