Document .direction & .relatedTarget properties of Carousel events.

Fixes #13395
This commit is contained in:
Chris Rebert 2014-04-21 13:28:21 -07:00
parent 4d0a8e31a4
commit 6617d8bcd1
1 changed files with 5 additions and 0 deletions

View File

@ -203,6 +203,11 @@ $('.carousel').carousel({
<h3>Events</h3>
<p>Bootstrap's carousel class exposes two events for hooking into carousel functionality.</p>
<p>Both events have the following additional properties:</p>
<ul>
<li><code>direction</code>: The direction in which the carousel is sliding (either <code>"left"</code> or <code>"right"</code>).</li>
<li><code>relatedTarget</code>: The DOM element that is being slid into place as the active item.</li>
</ul>
<div class="table-responsive">
<table class="table table-bordered table-striped">
<thead>