diff options
| author | Mark Otto <[email protected]> | 2013-10-13 18:43:19 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-10-13 18:43:19 -0700 |
| commit | edca93b8c71829cbe09055e048a31b54ec19eb5b (patch) | |
| tree | 12830b78e7a38731b3896ab357690ca7763eca7f | |
| parent | 6fa9037e1c37759bdf446e83926b12073c3cddf3 (diff) | |
| download | bootstrap-edca93b8c71829cbe09055e048a31b54ec19eb5b.tar.xz bootstrap-edca93b8c71829cbe09055e048a31b54ec19eb5b.zip | |
mention .modal-open and .modal-backdrop in docs /cc #10102
| -rw-r--r-- | javascript.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript.html b/javascript.html index d7cc4c7a3..e0723989e 100644 --- a/javascript.html +++ b/javascript.html @@ -232,6 +232,7 @@ $('#myModal').on('show.bs.modal', function (e) { </div> <h2 id="modals-usage">Usage</h2> + <p>The modal plugin toggles your hidden content on demand, via data attributes or JavaScript. It also adds <code>.model-open</code> to the <code><body></code> to override default scrolling behavior and generates a <code>.modal-backdrop</code> to provide a click area for dismissing shown modals when clicking outside the modal.</p> <h3>Via data attributes</h3> <p>Activate a modal without writing JavaScript. Set <code>data-toggle="modal"</code> on a controller element, like a button, along with a <code>data-target="#foo"</code> or <code>href="#foo"</code> to target a specific modal to toggle.</p> |
