mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 09:41:11 +00:00
Clarify ScrollSpy 'activate' event element
This commit is contained in:
parent
b2cadc233e
commit
1bde860c01
@ -316,13 +316,13 @@ Options can be passed via data attributes or JavaScript. For data attributes, ap
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>activate.bs.scrollspy</td>
|
<td>activate.bs.scrollspy</td>
|
||||||
<td>This event fires whenever a new item becomes activated by the scrollspy.</td>
|
<td>This event fires on the scroll element whenever a new item becomes activated by the scrollspy.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% highlight js %}
|
{% highlight js %}
|
||||||
$('#myScrollspy').on('activate.bs.scrollspy', function () {
|
$('[data-spy="scroll"]').on('activate.bs.scrollspy', function () {
|
||||||
// do something…
|
// do something…
|
||||||
})
|
})
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user