From: Jacob Thornton Date: Mon, 12 Sep 2011 07:03:24 +0000 (-0700) Subject: few more js doc wording changes X-Git-Tag: v1.3.0~27^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89465f8ce1065f907180cfffa3eac317b7c9774d;p=thirdparty%2Fbootstrap.git few more js doc wording changes --- diff --git a/docs/javascript.html b/docs/javascript.html index e19f544eb9..6d5cf9517e 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -146,19 +146,11 @@ $('#my-modal').modal({
$('#my-modal').modal(true)

Notice Alternatively, this can be retrieved with $().data('modal').

Events

-

Bootstrap's modal class exposes a few events for hooking into modal functionality. The include:

- - - +

Bootstrap's modal class exposes a few events for hooking into modal functionality.

- + @@ -229,7 +221,7 @@ $('#my-modal').bind('hidden', function () {
 <ul class="tabs">
   <li class="active"><a href="#">Home</a></li>
-  <li class="dropdown" data-dropdown>
+  <li class="dropdown" data-dropdown="x" >
     <a href="#" class="dropdown-toggle">Dropdown</a>
     <ul class="dropdown-menu">
       <li><a href="#">Secondary link</a></li>
@@ -303,20 +295,20 @@ $('#my-modal').bind('hidden', function () {
           
$('#topbar').dropdown()

Markup

To easily add scrollspy behavior to your nav, just add the data-scrollspy attribute to the .topbar. -

<div class="topbar" data-scrollspy >...</div>
+
<div class="topbar" data-scrollspy="x" >...</div>

Methods

$().scrollspy()

Auto activates navigation buttons by users scroll position.

$('body > .topbar').scrollSpy()
-

Notice Topbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> might correspond to a <div id="home"></div>. +

Notice Topbar anchor tags must have resolvable id targets. For example, a <a href="#home">home</a> must correspond to something in the dom like <div id="home"></div>.

.scrollspy('refresh')

-

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 like below.

+

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.

$('body').scrollspy('refresh')

Demo

-

Look at the topbar navigation on this page.

+

Checkout the the topbar navigation on this page.

NameEvent Description