]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
mention .dropdown-backdrop and .open in dropdown docs /cc #10102
authorMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:40:47 +0000 (18:40 -0700)
committerMark Otto <otto@github.com>
Mon, 14 Oct 2013 01:40:47 +0000 (18:40 -0700)
javascript.html

index a0e96c1c63915f2aca59e775200081ded5dfb030..d7cc4c7a36e285c6be584c773d9a00e2775e494b 100644 (file)
@@ -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>