]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
carousel: add missing `to` description and fix `nextwhenvisible` description (#31809)
authorAnkit Mishra <cankitm@gmail.com>
Mon, 5 Oct 2020 12:49:02 +0000 (18:19 +0530)
committerGitHub <noreply@github.com>
Mon, 5 Oct 2020 12:49:02 +0000 (15:49 +0300)
site/content/docs/5.0/components/carousel.md

index 1ef2055496a512a42c3fd22cafdbab8c5445d564..c478cbfadcf6972ca9f5450c76f0c2f052b40d52 100644 (file)
@@ -364,6 +364,10 @@ var carousel = new bootstrap.Carousel(myCarousel, {
     </tr>
     <tr>
       <td><code>nextWhenVisible</code></td>
+      <td>Don't cycle carousel to next when the page isn't visible or the carousel or its parent isn't visible. <strong>Returns to the caller before the target item has been shown</strong>
+    </tr>
+    <tr>
+      <td><code>to</code></td>
       <td>Cycles the carousel to a particular frame (0 based, similar to an array). <strong>Returns to the caller before the target item has been shown</strong> (e.g., before the <code>slid.bs.carousel</code> event occurs).</td>
     </tr>
     <tr>