diff options
| author | Jacob Thornton <[email protected]> | 2011-10-04 21:24:59 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-10-04 21:24:59 -0700 |
| commit | d7e3bf722d784b167b665e8bacb749f18ae0d0f4 (patch) | |
| tree | e680e0bc9306d7625d231ed2f7ef8f74ed5f4308 /docs/javascript.html | |
| parent | 7e01ff8a15f9024fdebc3859283ccc1f4c63cec7 (diff) | |
| download | bootstrap-d7e3bf722d784b167b665e8bacb749f18ae0d0f4.tar.xz bootstrap-d7e3bf722d784b167b665e8bacb749f18ae0d0f4.zip | |
add selector option to alerts, update modal settings strategy
Diffstat (limited to 'docs/javascript.html')
| -rw-r--r-- | docs/javascript.html | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/docs/javascript.html b/docs/javascript.html index 2a81b3307..2891c4460 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -195,7 +195,6 @@ $('#my-modal').bind('hidden', function () { </div> <button data-controls-modal="modal-from-dom" data-backdrop="true" data-keyboard="true" class="btn danger">Launch Modal</button> - </div> </div> </section> @@ -659,6 +658,26 @@ $('#.tabs').bind('change', function (e) { <pre class="prettyprint linenums">$(".alert-message").alert()</pre> <h3>Markup</h3> <p>Just add a <code>data-alert</code> attribute to your alert messages to automatically give them close functionality.</p> + <h3>Options</h3> + <table class="zebra-striped"> + <thead> + <tr> + <th style="width: 100px;">Name</th> + <th style="width: 100px;">type</th> + <th style="width: 50px;">default</th> + <th>description</th> + </tr> + </thead> + <tbody> + <tr> + <td>selector</td> + <td>string</td> + <td>'.close'</td> + <td>What selector to target for closing an alert.</td> + </tr> + </tbody> + </table> + <h3>Methods</h3> <h4>$().alert()</h4> <p>Wraps all alerts with close functionality. To have your alerts animate out when closed, make sure they have the <code>.fade</code> and <code>.in</code> class already applied to them.</p> |
