diff --git a/docs/javascript.html b/docs/javascript.html index bc5d606cd4..31ad87edda 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -566,7 +566,7 @@ $('#myModal').on('hidden', function () {
To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll"
to the element you want to spy on (most typically this would be the body) and data-target=".navbar"
to select which nav to use.
To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll"
to the element you want to spy on (most typically this would be the body) and data-target=".navbar"
to select which nav to use. You'll want to scrollspy with the .nav
class.
<body data-spy="scroll" data-target=".navbar">...</body>
{{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll"
to the element you want to spy on (most typically this would be the body) and data-target=".navbar"
to select which nav to use.{{/i}}
{{_i}}To easily add scrollspy behavior to your topbar navigation, just add data-spy="scroll"
to the element you want to spy on (most typically this would be the body) and data-target=".navbar"
to select which nav to use. You'll want to scrollspy with the .nav
class.{{/i}}
<body data-spy="scroll" data-target=".navbar">...</body>