]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Backport #31809 (#31851)
authorAnkit Mishra <cankitm@gmail.com>
Fri, 9 Oct 2020 04:51:12 +0000 (10:21 +0530)
committerGitHub <noreply@github.com>
Fri, 9 Oct 2020 04:51:12 +0000 (07:51 +0300)
carousel: add missing `to` and `nextwhenvisible` description

site/docs/4.5/components/carousel.md

index cdb0c64880fcd2e128ff086029a283fdd99d47f4..35bdd198f1dc29b3605322b82167c3c5050eef5c 100644 (file)
@@ -321,6 +321,14 @@ Cycles to the next item. **Returns to the caller before the next item has been s
 
 Destroys an element's carousel.
 
+#### `.carousel('nextWhenVisible')`
+
+Don't cycle the carousel to next when the page isn't visible or the carousel or its parent isn't visible. **Returns to the caller before the next item has been shown** (i.e. before the `slid.bs.carousel` event occurs).
+
+#### `.carousel('to')`
+
+Cycles the carousel to a particular frame (0 based, similar to an array). **Returns to the caller before the next item has been shown** (i.e. before the `slid.bs.carousel` event occurs).
+
 ### Events
 
 Bootstrap's carousel class exposes two events for hooking into carousel functionality. Both events have the following additional properties: