Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
4a5f1f03
Commit
4a5f1f03
authored
Jul 13, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
markdownify button dropdowns
parent
35d87bcb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
226 additions
and
218 deletions
+226
-218
docs/components/button-dropdown.md
docs/components/button-dropdown.md
+226
-218
No files found.
docs/components/button-dropdown.md
View file @
4a5f1f03
...
@@ -3,19 +3,18 @@ layout: page
...
@@ -3,19 +3,18 @@ layout: page
title
:
Button dropdown
title
:
Button dropdown
---
---
<div
class=
"bs-docs-section"
>
Use any button to trigger a dropdown menu by placing it within a
`.btn-group`
and providing the proper menu markup.
<h1
id=
"btn-dropdowns"
class=
"page-header"
>
Button dropdowns
</h1>
<p
class=
"lead"
>
Use any button to trigger a dropdown menu by placing it within a
<code>
.btn-group
</code>
and providing the proper menu markup.
</p>
<div
class=
"bs-callout bs-callout-danger"
>
<div
class=
"bs-callout bs-callout-danger"
>
<h4>
Plugin dependency
</h4>
<h4>
Plugin dependency
</h4>
<p>
Button dropdowns require the
<a
href=
"../javascript/#dropdowns"
>
dropdown plugin
</a>
to be included in your version of Bootstrap.
</p>
<p>
Button dropdowns require the
<a
href=
"../javascript/#dropdowns"
>
dropdown plugin
</a>
to be included in your version of Bootstrap.
</p>
</div>
</div>
<h3
id=
"btn-dropdowns-single"
>
Single button dropdowns
</h3>
### Single button dropdowns
<p>
Turn a button into a dropdown toggle with some basic markup changes.
</p>
<div
class=
"bs-example"
>
Turn a button into a dropdown toggle with some basic markup changes.
<div
class=
"bs-example"
>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-secondary dropdown-toggle"
data-toggle=
"dropdown"
>
Default
</button>
<button
type=
"button"
class=
"btn btn-secondary dropdown-toggle"
data-toggle=
"dropdown"
>
Default
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<ul
class=
"dropdown-menu"
role=
"menu"
>
...
@@ -76,7 +75,8 @@ title: Button dropdown
...
@@ -76,7 +75,8 @@ title: Button dropdown
<li><a
href=
"#"
>
Separated link
</a></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-group -->
</div>
</div>
{% highlight html %}
{% highlight html %}
<!-- Single button -->
<!-- Single button -->
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
...
@@ -93,9 +93,11 @@ title: Button dropdown
...
@@ -93,9 +93,11 @@ title: Button dropdown
</div>
</div>
{% endhighlight %}
{% endhighlight %}
<h3
id=
"btn-dropdowns-split"
>
Split button dropdowns
</h3>
### Split button dropdowns
<p>
Similarly, create split button dropdowns with the same markup changes, only with a separate button.
</p>
<div
class=
"bs-example"
>
<Similarly, create split button dropdowns with the same markup changes, only with a separate button.
<div
class=
"bs-example"
>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
type=
"button"
class=
"btn btn-secondary"
>
Default
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
Default
</button>
<button
type=
"button"
class=
"btn btn-secondary dropdown-toggle"
data-toggle=
"dropdown"
>
<button
type=
"button"
class=
"btn btn-secondary dropdown-toggle"
data-toggle=
"dropdown"
>
...
@@ -174,7 +176,8 @@ title: Button dropdown
...
@@ -174,7 +176,8 @@ title: Button dropdown
<li><a
href=
"#"
>
Separated link
</a></li>
<li><a
href=
"#"
>
Separated link
</a></li>
</ul>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-group -->
</div>
</div>
{% highlight html %}
{% highlight html %}
<!-- Split button -->
<!-- Split button -->
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
...
@@ -192,9 +195,11 @@ title: Button dropdown
...
@@ -192,9 +195,11 @@ title: Button dropdown
</div>
</div>
{% endhighlight %}
{% endhighlight %}
<h3
id=
"btn-dropdowns-sizing"
>
Sizing
</h3>
### Sizing
<p>
Button dropdowns work with buttons of all sizes.
</p>
<div
class=
"bs-example"
>
Button dropdowns work with buttons of all sizes.
<div
class=
"bs-example"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
>
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
<button
class=
"btn btn-secondary btn-lg dropdown-toggle"
type=
"button"
data-toggle=
"dropdown"
>
<button
class=
"btn btn-secondary btn-lg dropdown-toggle"
type=
"button"
data-toggle=
"dropdown"
>
...
@@ -237,7 +242,8 @@ title: Button dropdown
...
@@ -237,7 +242,8 @@ title: Button dropdown
</ul>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-group -->
</div>
<!-- /btn-toolbar -->
</div>
<!-- /btn-toolbar -->
</div>
<!-- /example -->
</div>
<!-- /example -->
{% highlight html %}
{% highlight html %}
<!-- Large button group -->
<!-- Large button group -->
<div
class=
"btn-group"
>
<div
class=
"btn-group"
>
...
@@ -270,9 +276,11 @@ title: Button dropdown
...
@@ -270,9 +276,11 @@ title: Button dropdown
</div>
</div>
{% endhighlight %}
{% endhighlight %}
<h3
id=
"btn-dropdowns-dropup"
>
Dropup variation
</h3>
### Dropup variation
<p>
Trigger dropdown menus above elements by adding
<code>
.dropup
</code>
to the parent.
</p>
<div
class=
"bs-example"
>
Trigger dropdown menus above elements by adding
`.dropup`
to the parent.
<div
class=
"bs-example"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
>
<div
class=
"btn-toolbar"
role=
"toolbar"
>
<div
class=
"btn-group dropup"
>
<div
class=
"btn-group dropup"
>
<button
type=
"button"
class=
"btn btn-secondary"
>
Dropup
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
Dropup
</button>
...
@@ -301,7 +309,8 @@ title: Button dropdown
...
@@ -301,7 +309,8 @@ title: Button dropdown
</ul>
</ul>
</div>
<!-- /btn-group -->
</div>
<!-- /btn-group -->
</div>
</div>
</div>
<!-- /example -->
</div>
{% highlight html %}
{% highlight html %}
<div
class=
"btn-group dropup"
>
<div
class=
"btn-group dropup"
>
<button
type=
"button"
class=
"btn btn-secondary"
>
Dropup
</button>
<button
type=
"button"
class=
"btn btn-secondary"
>
Dropup
</button>
...
@@ -313,4 +322,3 @@ title: Button dropdown
...
@@ -313,4 +322,3 @@ title: Button dropdown
</ul>
</ul>
</div>
</div>
{% endhighlight %}
{% endhighlight %}
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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