diff options
| author | Johann-S <[email protected]> | 2019-05-14 11:43:12 +0200 |
|---|---|---|
| committer | Johann-S <[email protected]> | 2019-05-14 14:32:45 +0200 |
| commit | 99b2a80db844967c9f4b39bfd12dfd1c1c86b041 (patch) | |
| tree | 9e42d91118f701dacfac367f57ff4ee184663216 | |
| parent | b7040ad9b481d1d335c512d9b0788c8ee6598f21 (diff) | |
| download | bootstrap-99b2a80db844967c9f4b39bfd12dfd1c1c86b041.tar.xz bootstrap-99b2a80db844967c9f4b39bfd12dfd1c1c86b041.zip | |
remove some jquery references in carousel docs
| -rw-r--r-- | site/content/docs/4.3/components/carousel.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/site/content/docs/4.3/components/carousel.md b/site/content/docs/4.3/components/carousel.md index 9dc0c8144..44b6d6a45 100644 --- a/site/content/docs/4.3/components/carousel.md +++ b/site/content/docs/4.3/components/carousel.md @@ -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. | | `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. | +| `_getInstance` | *Static* method which allows you to get the carousel instance associated with a DOM element | ### Events @@ -340,7 +341,9 @@ All carousel events are fired at the carousel itself (i.e. at the `<div class="c </table> {{< highlight js >}} -$('#myCarousel').on('slide.bs.carousel', function () { +var myCarousel = document.getElementById('myCarousel') + +myCarousel.addEventListener('slide.bs.carousel', function () { // do something... }) {{< /highlight >}} |
