diff options
| author | Mark Otto <[email protected]> | 2013-10-13 18:40:47 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-10-13 18:40:47 -0700 |
| commit | 6fa9037e1c37759bdf446e83926b12073c3cddf3 (patch) | |
| tree | 3c26431fbec6410cd20e645e0bfee1db280a6d87 /javascript.html | |
| parent | 727a91de1cdf5cbc4f25528e073480332a5940c5 (diff) | |
| download | bootstrap-6fa9037e1c37759bdf446e83926b12073c3cddf3.tar.xz bootstrap-6fa9037e1c37759bdf446e83926b12073c3cddf3.zip | |
mention .dropdown-backdrop and .open in dropdown docs /cc #10102
Diffstat (limited to 'javascript.html')
| -rw-r--r-- | javascript.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript.html b/javascript.html index a0e96c1c6..d7cc4c7a3 100644 --- a/javascript.html +++ b/javascript.html @@ -449,6 +449,7 @@ $('#myModal').on('hidden.bs.modal', function () { <h2 id="dropdowns-usage">Usage</h2> + <p>Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the <code>.open</code> class on the parent list item. When opened, the plugin also adds <code>.dropdown-backdrop</code> as a click area for closing dropdown menus when clicking outside the menu.</p> <h3>Via data attributes</h3> <p>Add <code>data-toggle="dropdown"</code> to a link or button to toggle a dropdown.</p> |
