]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document .direction & .relatedTarget properties of Carousel events.
authorChris Rebert <code@rebertia.com>
Mon, 21 Apr 2014 20:28:21 +0000 (13:28 -0700)
committerChris Rebert <code@rebertia.com>
Fri, 25 Apr 2014 02:02:47 +0000 (19:02 -0700)
Fixes #13395

docs/_includes/js/carousel.html

index b0665dba8db6349ddaf22eedf9989206af3338c7..2b5b0111b13eee3e836787a28c43f7c5d83befda 100644 (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>