Skip to content

Commit 10cd0ff

Browse files
committed
Document .direction & .relatedTarget properties of Carousel events.
Fixes #13395
1 parent cf18b06 commit 10cd0ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/_includes/js/carousel.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,11 @@ <h4>.carousel('next')</h4>
203203

204204
<h3>Events</h3>
205205
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
206+
<p>Both events have the following additional properties:</p>
207+
<ul>
208+
<li><code>direction</code>: The direction in which the carousel is sliding (either <code>"left"</code> or <code>"right"</code>).</li>
209+
<li><code>relatedTarget</code>: The DOM element that is being slid into place as the active item.</li>
210+
</ul>
206211
<div class="table-responsive">
207212
<table class="table table-bordered table-striped">
208213
<thead>

0 commit comments

Comments
 (0)