aboutsummaryrefslogtreecommitdiff
path: root/docs/components.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-01-12 00:33:12 -0800
committerMark Otto <[email protected]>2013-01-12 00:33:12 -0800
commita7231854c91399aafb371ccdf2b930037a7ac5ed (patch)
tree71811eeb2983af7d21fd8387ae18e0fade412026 /docs/components.html
parent8a167465425f926913e532a780c12578339e8872 (diff)
downloadbootstrap-a7231854c91399aafb371ccdf2b930037a7ac5ed.tar.xz
bootstrap-a7231854c91399aafb371ccdf2b930037a7ac5ed.zip
Address #6459 and add mention of disabled links in dropdowns to le docs
Diffstat (limited to 'docs/components.html')
-rw-r--r--docs/components.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/docs/components.html b/docs/components.html
index 751418816..bbb0dc39d 100644
--- a/docs/components.html
+++ b/docs/components.html
@@ -163,6 +163,25 @@
&lt;/ul&gt;
</pre>
+ <h3>Disabled menu options</h3>
+ <p>Add <code>.disabled</code> to a <code>&lt;li&gt;</code> in the dropdown to disable the link.</p>
+ <div class="bs-docs-example">
+ <div class="dropdown clearfix">
+ <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu" style="display: block; position: static; margin-bottom: 5px; *width: 180px;">
+ <li><a tabindex="-1" href="#">Regular link</a></li>
+ <li class="disabled"><a tabindex="-1" href="#">Disabled link</a></li>
+ <li><a tabindex="-1" href="#">Another link</a></li>
+ </ul>
+ </div>
+ </div>
+<pre class="prettyprint linenums">
+&lt;ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu"&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Regular link&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Disabled link&lt;/a&gt;&lt;/li&gt;
+ &lt;li&gt;&lt;a tabindex="-1" href="#"&gt;Another link&lt;/a&gt;&lt;/li&gt;
+&lt;/ul&gt;
+</pre>
+
<h3>Sub menus on dropdowns</h3>
<p>Add an extra level of dropdown menus, appearing on hover like those of OS X, with some simple markup additions. Add <code>.dropdown-submenu</code> to any <code>li</code> in an existing dropdown menu for automatic styling.</p>
<div class="bs-docs-example bs-docs-example-submenus">