0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
carousel: add missing `to` and `nextwhenvisible` description
This commit is contained in:
Ankit Mishra 2020-10-09 10:21:12 +05:30 committed by GitHub
parent 429a84ff33
commit 5d066caace
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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. 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 ### Events
Bootstrap's carousel class exposes two events for hooking into carousel functionality. Both events have the following additional properties: Bootstrap's carousel class exposes two events for hooking into carousel functionality. Both events have the following additional properties: