Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
e795ea10
Commit
e795ea10
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
Fixes
#14791
: document dropdown dividers
parent
9bf9aab1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/_includes/components/dropdowns.html
+24
-4
docs/_includes/components/dropdowns.html
docs/_includes/nav/components.html
+1
-0
docs/_includes/nav/components.html
with
25 additions
and
4 deletions
+25
-4
docs/_includes/components/dropdowns.html
+
24
-
4
View file @
e795ea10
...
...
@@ -15,7 +15,6 @@
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Another action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Something else here
</a></li>
<li
role=
"presentation"
class=
"divider"
></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
...
...
@@ -30,7 +29,6 @@
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Another action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Something else here
</a></li>
<li
role=
"presentation"
class=
"divider"
></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
...
...
@@ -65,7 +63,6 @@
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Another action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Something else here
</a></li>
<li
role=
"presentation"
class=
"divider"
></li>
<li
role=
"presentation"
class=
"dropdown-header"
>
Dropdown header
</li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Separated link
</a></li>
</ul>
...
...
@@ -73,10 +70,33 @@
</div>
<!-- /example -->
{% highlight html %}
<ul
class=
"dropdown-menu"
role=
"menu"
aria-labelledby=
"dropdownMenu2"
>
...
<li
role=
"presentation"
class=
"dropdown-header"
>
Dropdown header
</li>
...
</ul>
{% endhighlight %}
<h3
id=
"dropdowns-divider"
>
Divider
</h3>
<p>
Add a divider to separate series of links in a dropdown menu.
</p>
<div
class=
"bs-example"
>
<div
class=
"dropdown clearfix"
>
<button
class=
"btn btn-default dropdown-toggle"
type=
"button"
id=
"dropdownMenu2"
data-toggle=
"dropdown"
>
Dropdown
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
aria-labelledby=
"dropdownMenu2"
>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Another action
</a></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Something else here
</a></li>
<li
role=
"presentation"
class=
"divider"
></li>
<li
role=
"presentation"
><a
role=
"menuitem"
tabindex=
"-1"
href=
"#"
>
Separated link
</a></li>
</ul>
</div>
</div>
<!-- /example -->
{% highlight html %}
<ul
class=
"dropdown-menu"
role=
"menu"
aria-labelledby=
"dropdownMenu2"
>
...
<li
role=
"presentation"
class=
"divider"
></li>
<li
role=
"presentation"
class=
"dropdown-header"
>
Dropdown header
</li>
...
</ul>
{% endhighlight %}
...
...
This diff is collapsed.
Click to expand it.
docs/_includes/nav/components.html
+
1
-
0
View file @
e795ea10
...
...
@@ -12,6 +12,7 @@
<li><a
href=
"#dropdowns-example"
>
Example
</a></li>
<li><a
href=
"#dropdowns-alignment"
>
Alignment options
</a></li>
<li><a
href=
"#dropdowns-headers"
>
Headers
</a></li>
<li><a
href=
"#dropdowns-divider"
>
Divider
</a></li>
<li><a
href=
"#dropdowns-disabled"
>
Disabled menu items
</a></li>
</ul>
</li>
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment