diff options
author | Jacob Thornton <jacobthornton@gmail.com> | 2012-08-19 06:32:50 +0400 |
---|---|---|
committer | Jacob Thornton <jacobthornton@gmail.com> | 2012-08-19 06:32:50 +0400 |
commit | 937cfa6a88919eaa6bfd3e65405093f9bd46c95d (patch) | |
tree | 809c4aab88534cd87963e660aab3f7edf1aac6a4 /docs/templates | |
parent | 1166b39630cb2394722456a38d99a3cca4c97354 (diff) |
add note about .nav
Diffstat (limited to 'docs/templates')
-rw-r--r-- | docs/templates/pages/javascript.mustache | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index b62bbfc3cb..29cce61e6d 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.{{/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 scrollspy with the <code>.nav</code> class.{{/i}}</p> <pre class="prettyprint linenums"><body data-spy="scroll" data-target=".navbar">...</body></pre> <h3>{{_i}}Via JavaScript{{/i}}</h3> |