Commit 07d23b92 authored by Jacob Thornton's avatar Jacob Thornton

add activate to scrollspy docs

parent 384a082e
......@@ -92,8 +92,10 @@
.addClass('active')
if ( active.parent('.dropdown-menu') ) {
active.closest('li.dropdown').addClass('active')
active = active.closest('li.dropdown').addClass('active')
}
active.trigger('activate')
}
}
......
......@@ -589,6 +589,21 @@ $('#myModal').on('hidden', function () {
</tr>
</tbody>
</table>
<h3>Events</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 150px;">Event</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>activate</td>
<td>This event fires whenever a new item becomes activated by the scrollspy.</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
......
......@@ -513,6 +513,21 @@ $('#myModal').on('hidden', function () {
</tr>
</tbody>
</table>
<h3>{{_i}}Events{{/i}}</h3>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th style="width: 150px;">{{_i}}Event{{/i}}</th>
<th>{{_i}}Description{{/i}}</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{_i}}activate{{/i}}</td>
<td>{{_i}}This event fires whenever a new item becomes activated by the scrollspy.{{/i}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment