]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
javascript.html: add data-ride note 10146/head
authorBen Combee <combee@techwood.org>
Sun, 25 Aug 2013 19:49:15 +0000 (14:49 -0500)
committerBen Combee <combee@techwood.org>
Mon, 26 Aug 2013 04:07:43 +0000 (23:07 -0500)
carousel docs were missing mention of the data-ride attribute
used to automatically start the carousel at load time

javascript.html

index 6a0807952e5b6306a6dad0adb2c6c0c802e710c6..4d3d08800b3e9824e6db2253ea01823c39b3337a 100644 (file)
@@ -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>