aboutsummaryrefslogtreecommitdiff
path: root/javascript.html
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-08-25 21:36:31 -0700
committerChris Rebert <[email protected]>2013-08-25 21:36:31 -0700
commitd977c9902d346862879f6b1c5cc4f8385ed27645 (patch)
treef4eae10320f89b359ad84ca8b9e1068967675043 /javascript.html
parent90604bbceafb3442df732ae82ec0c828b385456d (diff)
parent92bb465ba3a33dd53f61e01aad97abf10e4f7166 (diff)
downloadbootstrap-d977c9902d346862879f6b1c5cc4f8385ed27645.tar.xz
bootstrap-d977c9902d346862879f6b1c5cc4f8385ed27645.zip
Merge pull request #10146 from unwiredben/master
javascript.html: add data-ride note
Diffstat (limited to 'javascript.html')
-rw-r--r--javascript.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript.html b/javascript.html
index 6a0807952..4d3d08800 100644
--- a/javascript.html
+++ b/javascript.html
@@ -1756,6 +1756,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {
<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>
<h3>Via JavaScript</h3>
<p>Call carousel manually with:</p>