mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
remove some jquery references in carousel docs
This commit is contained in:
parent
b7040ad9b4
commit
99b2a80db8
@ -308,6 +308,7 @@ var carousel = new bootstrap.Carousel(myCarousel, {
|
|||||||
| `nextWhenVisible` | Only go to the next slide when the page, carousel and the carousel parent is visible. |
|
| `nextWhenVisible` | Only go to the next slide when the page, carousel and the carousel parent is visible. |
|
||||||
| `to` | Cycles the carousel to a particular frame (0 based, similar to an array). **Returns to the caller before the target item has been shown** (i.e. before the `slid.bs.carousel` event occurs). |
|
| `to` | Cycles the carousel to a particular frame (0 based, similar to an array). **Returns to the caller before the target item has been shown** (i.e. before the `slid.bs.carousel` event occurs). |
|
||||||
| `dispose` | Destroys an element's carousel. |
|
| `dispose` | Destroys an element's carousel. |
|
||||||
|
| `_getInstance` | *Static* method which allows you to get the carousel instance associated with a DOM element |
|
||||||
|
|
||||||
### Events
|
### Events
|
||||||
|
|
||||||
@ -340,7 +341,9 @@ All carousel events are fired at the carousel itself (i.e. at the `<div class="c
|
|||||||
</table>
|
</table>
|
||||||
|
|
||||||
{{< highlight js >}}
|
{{< highlight js >}}
|
||||||
$('#myCarousel').on('slide.bs.carousel', function () {
|
var myCarousel = document.getElementById('myCarousel')
|
||||||
|
|
||||||
|
myCarousel.addEventListener('slide.bs.carousel', function () {
|
||||||
// do something...
|
// do something...
|
||||||
})
|
})
|
||||||
{{< /highlight >}}
|
{{< /highlight >}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user