From 1211a8155e9357ddd747f7ecba800e460e72465d Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 11 Nov 2014 21:16:34 -0800 Subject: JS docs: add Options, Methods, Events subsections to nav sidebar --- docs/_includes/js/scrollspy.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/_includes/js/scrollspy.html') diff --git a/docs/_includes/js/scrollspy.html b/docs/_includes/js/scrollspy.html index dc8900686..d58ddbe5a 100644 --- a/docs/_includes/js/scrollspy.html +++ b/docs/_includes/js/scrollspy.html @@ -93,7 +93,7 @@ $('body').scrollspy({ target: '.navbar-example' }) {% endhighlight %} -

Methods

+

Methods

.scrollspy('refresh')

When using scrollspy in conjunction with adding or removing of elements from the DOM, you'll need to call the refresh method like so:

{% highlight js %} @@ -103,7 +103,7 @@ $('[data-spy="scroll"]').each(function () { {% endhighlight %} -

Options

+

Options

Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-offset="".

@@ -126,7 +126,7 @@ $('[data-spy="scroll"]').each(function () {
-

Events

+

Events

-- cgit v1.2.3