Skip to content

Commit

Permalink
Backport #31809 (#31851)
Browse files Browse the repository at this point in the history
carousel: add missing `to` and `nextwhenvisible` description
  • Loading branch information
cankitm committed Oct 9, 2020
1 parent 429a84f commit 5d066ca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions site/docs/4.5/components/carousel.md
Expand Up @@ -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:
Expand Down

0 comments on commit 5d066ca

Please sign in to comment.