diff options
| author | Jacob Thornton <[email protected]> | 2011-09-17 14:20:51 -0700 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-09-17 14:20:51 -0700 |
| commit | 7b614cfa01eccfef02d85f2f82e0b13023ce7baa (patch) | |
| tree | 7c171122a69ae1ca66c56eb05597e2f89bc30cac /docs/javascript.html | |
| parent | 2cb233319da422c9f003e8687d686e96a92be489 (diff) | |
| download | bootstrap-7b614cfa01eccfef02d85f2f82e0b13023ce7baa.tar.xz bootstrap-7b614cfa01eccfef02d85f2f82e0b13023ce7baa.zip | |
allow backdrop option to accept "static" option
Diffstat (limited to 'docs/javascript.html')
| -rw-r--r-- | docs/javascript.html | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/docs/javascript.html b/docs/javascript.html index e0d85f25a..ca4f941a1 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -101,15 +101,9 @@ <tbody> <tr> <td>backdrop</td> - <td>boolean</td> + <td>boolean, string</td> <td>false</td> - <td>Includes a modal-backdrop element</td> - </tr> - <tr> - <td>backdropClickHides</td> - <td>boolean</td> - <td>true</td> - <td>A click on the modal-backdrop element hides the modal</td> + <td>Includes a modal-backdrop element. Set backdrop to <code>"static"</code> if you do not want the modal closed when the backdrop is clicked.</td> </tr> <tr> <td>keyboard</td> @@ -128,7 +122,7 @@ <h3>Markup</h3> <p>You can activate modals on your page easily without having to write a single line of javascript. Just give an element a <code>data-controls-modal</code> attribute which corresponds to a modal element id, and when clicked, it will launch your modal. To add modal options, just include them as data attributes as well.</p> <pre class="prettyprint linenums"> -<a class="btn" data-controls-modal="my-modal" data-backdrop="true" >Launch Modal</a> +<a class="btn" data-controls-modal="my-modal" data-backdrop="static" >Launch Modal</a> </pre> <p><span class="label notice">Notice</span> If you want your modal to animate in and out, just add a <code>.fade</code> class to your <code>.modal</code> element (refer to the demo to see this in action).</p> <h3>Methods</h3> @@ -464,7 +458,7 @@ $('#my-modal').bind('hidden', function () { </tr> <tr> <td>title</td> - <td>string | function</td> + <td>string, function</td> <td>'title'</td> <td>attribute or method for retrieving title text</td> </tr> @@ -581,13 +575,13 @@ $('#my-modal').bind('hidden', function () { </tr> <tr> <td>title</td> - <td>string | function</td> + <td>string, function</td> <td>'title'</td> <td>attribute or method for retrieving title text</td> </tr> <tr> <td>content</td> - <td>string | function</td> + <td>string, function</td> <td>'data-content'</td> <td>attribute or method for retrieving content text</td> </tr> |
