From 6fa9037e1c37759bdf446e83926b12073c3cddf3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 13 Oct 2013 18:40:47 -0700 Subject: [PATCH] mention .dropdown-backdrop and .open in dropdown docs /cc #10102 --- javascript.html | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript.html b/javascript.html index a0e96c1c63..d7cc4c7a36 100644 --- a/javascript.html +++ b/javascript.html @@ -449,6 +449,7 @@ $('#myModal').on('hidden.bs.modal', function () { +

Via data attributes or JavaScript, the dropdown plugin toggles hidden content (dropdown menus) by toggling the .open class on the parent list item. When opened, the plugin also adds .dropdown-backdrop as a click area for closing dropdown menus when clicking outside the menu.

Via data attributes

Add data-toggle="dropdown" to a link or button to toggle a dropdown.