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
9928144d
Commit
9928144d
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
Fixes #15241: Add simple example to docs for collapse plugin
parent
23bdfc45
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
docs/_includes/js/collapse.html
+26
-2
docs/_includes/js/collapse.html
docs/_includes/nav/javascript.html
+2
-1
docs/_includes/nav/javascript.html
docs/assets/css/docs.min.css
+1
-1
docs/assets/css/docs.min.css
docs/assets/css/src/docs.css
+5
-0
docs/assets/css/src/docs.css
docs/assets/js/customize.min.js
+1
-1
docs/assets/js/customize.min.js
with
35 additions
and
5 deletions
+35
-5
docs/_includes/js/collapse.html
+
26
-
2
View file @
9928144d
...
...
@@ -9,8 +9,32 @@
<p>
Collapse requires the
<a
href=
"#transitions"
>
transitions plugin
</a>
to be included in your version of Bootstrap.
</p>
</div>
<h2
id=
"collapse-examples"
>
Example accordion
</h2>
<p>
Using the collapse plugin, we built a simple accordion by extending the panel component.
</p>
<h2
id=
"collapse-example"
>
Example
</h2>
<p>
Click the button below to show and hide another element.
</p>
<div
class=
"bs-example"
>
<button
class=
"btn btn-primary"
type=
"button"
data-toggle=
"collapse"
data-target=
"#collapseExample"
aria-expanded=
"false"
aria-controls=
"collapseExample"
>
Toggle hidden content
</button>
<div
class=
"collapse"
id=
"collapseExample"
>
<div
class=
"well"
>
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
</div>
</div>
</div>
{% highlight html %}
<button
class=
"btn btn-primary"
type=
"button"
data-toggle=
"collapse"
data-target=
"#collapseExample"
aria-expanded=
"false"
aria-controls=
"collapseExample"
>
Toggle hidden content
</button>
<div
class=
"collapse"
id=
"collapseExample"
>
<div
class=
"well"
>
...
</div>
</div>
{% endhighlight %}
<h2
id=
"collapse-example-accordion"
>
Accordion example
</h2>
<p>
You can extend the collapse plugin with the panel component to create an accordion.
</p>
<div
class=
"bs-example"
>
<div
class=
"panel-group"
id=
"accordion"
role=
"tablist"
aria-multiselectable=
"true"
>
...
...
This diff is collapsed.
Click to expand it.
docs/_includes/nav/javascript.html
+
2
-
1
View file @
9928144d
...
...
@@ -92,7 +92,8 @@
<li>
<a
href=
"#collapse"
>
Collapse
</a>
<ul
class=
"nav"
>
<li><a
href=
"#collapse-examples"
>
Examples
</a></li>
<li><a
href=
"#collapse-example"
>
Example
</a></li>
<li><a
href=
"#collapse-example-accordion"
>
Accordion example
</a></li>
<li><a
href=
"#collapse-usage"
>
Usage
</a></li>
<li><a
href=
"#collapse-options"
>
Options
</a></li>
<li><a
href=
"#collapse-methods"
>
Methods
</a></li>
...
...
This diff is collapsed.
Click to expand it.
docs/assets/css/docs.min.css
+
1
-
1
View file @
9928144d
This diff is collapsed.
Click to expand it.
docs/assets/css/src/docs.css
+
5
-
0
View file @
9928144d
...
...
@@ -1146,6 +1146,11 @@ h1[id] {
overflow
:
auto
;
}
/* Simple collapse example */
#collapseExample
.well
{
margin-bottom
:
0
;
}
/* Don't wrap event names in Events tables in JS plugin docs */
.bs-events-table
>
thead
>
tr
>
th
:first-child
,
.bs-events-table
>
tbody
>
tr
>
td
:first-child
{
...
...
This diff is collapsed.
Click to expand it.
docs/assets/js/customize.min.js
+
1
-
1
View file @
9928144d
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