diff options
| author | Lim Chee Aun <[email protected]> | 2011-09-18 08:35:34 +0800 |
|---|---|---|
| committer | Lim Chee Aun <[email protected]> | 2011-09-18 08:35:34 +0800 |
| commit | 7da0e5cc0c01ded91544ecc2bca0c171d3176cb5 (patch) | |
| tree | 0d816ee666dea40a9c2bd32169a1cb2b2f864b53 /docs/javascript.html | |
| parent | 7b614cfa01eccfef02d85f2f82e0b13023ce7baa (diff) | |
| download | bootstrap-7da0e5cc0c01ded91544ecc2bca0c171d3176cb5.tar.xz bootstrap-7da0e5cc0c01ded91544ecc2bca0c171d3176cb5.zip | |
Documentation typo/error on scrollSpy.
Diffstat (limited to 'docs/javascript.html')
| -rw-r--r-- | docs/javascript.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/javascript.html b/docs/javascript.html index ca4f941a1..f8ef930c6 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -292,21 +292,21 @@ $('#my-modal').bind('hidden', function () { </div> <div class="span12 columns"> <h2>Using boostrap-scrollspy.js</h2> - <pre class="prettyprint linenums">$('#topbar').dropdown()</pre> + <pre class="prettyprint linenums">$('#topbar').scrollSpy()</pre> <h3>Markup</h3> <p>To easily add scrollspy behavior to your nav, just add the <code>data-scrollspy</code> attribute to the <code>.topbar</code>. <pre class="prettyprint linenums"><div class="topbar" data-scrollspy="scrollspy" >...</div></pre> <h3>Methods</h3> - <h4>$().scrollspy()</h4> + <h4>$().scrollSpy()</h4> <p> Auto activates navigation buttons by users scroll position. </p> <pre class="prettyprint linenums">$('body > .topbar').scrollSpy()</pre> <p><span class="label notice">Notice</span> Topbar anchor tags must have resolvable id targets. For example, a <code><a href="#home">home</a></code> must correspond to something in the dom like <code><div id="home"></div></code>. </p> - <h4>.scrollspy('refresh')</h4> + <h4>.scrollSpy('refresh')</h4> <p>The scrollspy caches nav buttons and section coordinates for performance. If you need to update this cache (likely if you have dynamic content) just call this refresh method. If you used the data attribute to define your scrollspy, just call refresh on the body.</p> - <pre class="prettyprint linenums">$('body').scrollspy('refresh')</pre> + <pre class="prettyprint linenums">$('body').scrollSpy('refresh')</pre> <h3>Demo</h3> <p>Checkout the the topbar navigation on this page.</p> </div> |
