aboutsummaryrefslogtreecommitdiff
path: root/docs/templates
diff options
context:
space:
mode:
authorJacob Thornton <[email protected]>2012-08-18 19:33:46 -0700
committerJacob Thornton <[email protected]>2012-08-18 19:33:46 -0700
commit44e35e9dfa33fe618218c770f0495bd9596f3485 (patch)
tree8c7b0b70fc2baf26f6d0704e2faac2de27d748b5 /docs/templates
parent937cfa6a88919eaa6bfd3e65405093f9bd46c95d (diff)
downloadbootstrap-44e35e9dfa33fe618218c770f0495bd9596f3485.tar.xz
bootstrap-44e35e9dfa33fe618218c770f0495bd9596f3485.zip
fix component
Diffstat (limited to 'docs/templates')
-rw-r--r--docs/templates/pages/javascript.mustache2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache
index 29cce61e6..b419fb314 100644
--- a/docs/templates/pages/javascript.mustache
+++ b/docs/templates/pages/javascript.mustache
@@ -496,7 +496,7 @@ $('#myModal').on('hidden', function () {
<h2>{{_i}}Usage{{/i}}</h2>
<h3>{{_i}}Via data attributes{{/i}}</h3>
- <p>{{_i}}To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to scrollspy with the <code>.nav</code> class.{{/i}}</p>
+ <p>{{_i}}To easily add scrollspy behavior to your topbar navigation, just add <code>data-spy="scroll"</code> to the element you want to spy on (most typically this would be the body) and <code>data-target=".navbar"</code> to select which nav to use. You'll want to use scrollspy with a <code>.nav</code> component.{{/i}}</p>
<pre class="prettyprint linenums">&lt;body data-spy="scroll" data-target=".navbar"&gt;...&lt;/body&gt;</pre>
<h3>{{_i}}Via JavaScript{{/i}}</h3>