From: Ben Combee Date: Sun, 25 Aug 2013 19:49:15 +0000 (-0500) Subject: javascript.html: add data-ride note X-Git-Tag: v3.0.1~124^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92bb465ba3a33dd53f61e01aad97abf10e4f7166;p=thirdparty%2Fbootstrap.git javascript.html: add data-ride note carousel docs were missing mention of the data-ride attribute used to automatically start the carousel at load time --- diff --git a/javascript.html b/javascript.html index 6a0807952e..4d3d08800b 100644 --- a/javascript.html +++ b/javascript.html @@ -1756,6 +1756,7 @@ $('#myCollapsible').on('hidden.bs.collapse', function () {

Via data attributes

Use data attributes to easily control the position of the carousel. data-slide accepts the keywords prev or next, which alters the slide position relative to its current position. Alternatively, use data-slide-to to pass a raw slide index to the carousel data-slide-to="2", which shifts the slide position to a particular index beginning with 0.

+

The data-ride="carousel" attribute is used to mark a carousel as animating starting at page load.

Via JavaScript

Call carousel manually with: