mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
mention .dropdown-backdrop and .open in dropdown docs /cc #10102
This commit is contained in:
parent
727a91de1c
commit
6fa9037e1c
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user