aboutsummaryrefslogtreecommitdiff
path: root/docs/templates
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2012-07-27 10:06:54 -0700
committerMark Otto <[email protected]>2012-07-27 10:06:54 -0700
commit9d5c4312232ebb53b2499ed495851c0d61eb648c (patch)
treeee602408a1cd0bb79afd0cfd59cca7f0ede8df0b /docs/templates
parent1e9b4506196bd448c4038151964733ca524c10bb (diff)
downloadbootstrap-9d5c4312232ebb53b2499ed495851c0d61eb648c.tar.xz
bootstrap-9d5c4312232ebb53b2499ed495851c0d61eb648c.zip
add basic support for sub menus in dropdown menus
Diffstat (limited to 'docs/templates')
-rw-r--r--docs/templates/pages/components.mustache19
1 files changed, 10 insertions, 9 deletions
diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache
index 52d5137c0..e9022ee12 100644
--- a/docs/templates/pages/components.mustache
+++ b/docs/templates/pages/components.mustache
@@ -51,7 +51,16 @@
<li><a tabindex="-1" href="#">{{_i}}Another action{{/i}}</a></li>
<li><a tabindex="-1" href="#">{{_i}}Something else here{{/i}}</a></li>
<li class="divider"></li>
- <li><a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a></li>
+ <li class="dropdown-submenu">
+ <a tabindex="-1" href="#">{{_i}}Separated link{{/i}}</a>
+ <ul class="dropdown-menu">
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ <li><a tabindex="-1" href="#">{{_i}}Second level link{{/i}}</a></li>
+ </ul>
+ </li>
</ul>
</div>
</div>{{! /example }}
@@ -65,10 +74,6 @@
&lt;/ul&gt;
</pre>
-
- <hr class="bs-docs-separator">
-
-
<h2>{{_i}}Markup{{/i}}</h2>
<p>{{_i}}Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within <code>.dropdown</code>, or another element that declares <code>position: relative;</code>. Then just create the menu.{{/i}}</p>
@@ -85,10 +90,6 @@
&lt;/div&gt;
</pre>
-
- <hr class="bs-docs-separator">
-
-
<h2>{{_i}}Options{{/i}}</h2>
<p>{{_i}}...{{/i}}</p>