1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00

add activate to scrollspy docs

This commit is contained in:
Jacob Thornton 2012-03-19 20:29:22 -07:00
parent 384a082e8d
commit 07d23b927e
4 changed files with 33 additions and 1 deletions

Binary file not shown.

View file

@ -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')
}
}

View file

@ -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>

View file

@ -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>