1
0
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:
Mike Jacobson 2017-10-01 15:26:37 -07:00 committed by Mark Otto
parent b2cadc233e
commit 1bde860c01

View File

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