From 16b4ac0d8fd5fd2aa588a8b486b71b449e3821ca Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Fri, 27 Jul 2012 10:35:15 -0700 Subject: add docs for sub menu support on dropdowns, add caret via :after to submenu toggles --- docs/templates/pages/components.mustache | 55 +++++++++++++++++++++++++------- 1 file changed, 43 insertions(+), 12 deletions(-) (limited to 'docs/templates') diff --git a/docs/templates/pages/components.mustache b/docs/templates/pages/components.mustache index e9022ee12..7ac31e219 100644 --- a/docs/templates/pages/components.mustache +++ b/docs/templates/pages/components.mustache @@ -51,16 +51,7 @@
  • {{_i}}Another action{{/i}}
  • {{_i}}Something else here{{/i}}
  • - +
  • {{_i}}Separated link{{/i}}
  • {{! /example }} @@ -91,10 +82,50 @@

    {{_i}}Options{{/i}}

    -

    {{_i}}...{{/i}}

    +

    {{_i}}Align menus to the right and add include additional levels of dropdowns.{{/i}}

    {{_i}}Aligning the menus{{/i}}

    -

    {{_i}}...{{/i}}

    +

    {{_i}}Add .pull-right to a .dropdown-menu to right align the dropdown menu.{{/i}}

    +
    +<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dLabel">
    +  ...
    +</ul>
    +
    + +

    {{_i}}Sub menus on dropdowns{{/i}}

    +

    {{_i}}Add an extra level of dropdown menus, appearing on hover like those of OS X, with some simple markup additions. Add .dropdown-submenu to any li in an existing dropdown menu for automatic styling.{{/i}}

    +
    + +
    {{! /example }} +
    +<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
    +  ...
    +  <li class="dropdown-submenu">
    +    <a tabindex="-1" href="#">{{_i}}More options{{/i}}</a>
    +    <ul class="dropdown-menu">
    +      ...
    +    </ul>
    +  </li>
    +</ul>
    +
    + -- cgit v1.2.3