aboutsummaryrefslogtreecommitdiff
path: root/docs/_includes
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-04-21 13:28:21 -0700
committerChris Rebert <[email protected]>2014-04-24 19:02:47 -0700
commit6617d8bcd1db42bf03a4b1d9288e16dae8acfd5a (patch)
tree14ad93c31b8076561e97577f7da973e6624e10fc /docs/_includes
parent4d0a8e31a46e54bb180eadb2844d1e4a9c7c4e91 (diff)
downloadbootstrap-6617d8bcd1db42bf03a4b1d9288e16dae8acfd5a.tar.xz
bootstrap-6617d8bcd1db42bf03a4b1d9288e16dae8acfd5a.zip
Document .direction & .relatedTarget properties of Carousel events.
Fixes #13395
Diffstat (limited to 'docs/_includes')
-rw-r--r--docs/_includes/js/carousel.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/_includes/js/carousel.html b/docs/_includes/js/carousel.html
index b0665dba8..2b5b0111b 100644
--- a/docs/_includes/js/carousel.html
+++ b/docs/_includes/js/carousel.html
@@ -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>