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
9928144d
Commit
9928144d
authored
Nov 29, 2014
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #15241: Add simple example to docs for collapse plugin
parent
23bdfc45
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
5 deletions
+35
-5
docs/_includes/js/collapse.html
docs/_includes/js/collapse.html
+26
-2
docs/_includes/nav/javascript.html
docs/_includes/nav/javascript.html
+2
-1
docs/assets/css/docs.min.css
docs/assets/css/docs.min.css
+1
-1
docs/assets/css/src/docs.css
docs/assets/css/src/docs.css
+5
-0
docs/assets/js/customize.min.js
docs/assets/js/customize.min.js
+1
-1
No files found.
docs/_includes/js/collapse.html
View file @
9928144d
...
@@ -9,8 +9,32 @@
...
@@ -9,8 +9,32 @@
<p>
Collapse requires the
<a
href=
"#transitions"
>
transitions plugin
</a>
to be included in your version of Bootstrap.
</p>
<p>
Collapse requires the
<a
href=
"#transitions"
>
transitions plugin
</a>
to be included in your version of Bootstrap.
</p>
</div>
</div>
<h2
id=
"collapse-examples"
>
Example accordion
</h2>
<h2
id=
"collapse-example"
>
Example
</h2>
<p>
Using the collapse plugin, we built a simple accordion by extending the panel component.
</p>
<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=
"bs-example"
>
<div
class=
"panel-group"
id=
"accordion"
role=
"tablist"
aria-multiselectable=
"true"
>
<div
class=
"panel-group"
id=
"accordion"
role=
"tablist"
aria-multiselectable=
"true"
>
...
...
docs/_includes/nav/javascript.html
View file @
9928144d
...
@@ -92,7 +92,8 @@
...
@@ -92,7 +92,8 @@
<li>
<li>
<a
href=
"#collapse"
>
Collapse
</a>
<a
href=
"#collapse"
>
Collapse
</a>
<ul
class=
"nav"
>
<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-usage"
>
Usage
</a></li>
<li><a
href=
"#collapse-options"
>
Options
</a></li>
<li><a
href=
"#collapse-options"
>
Options
</a></li>
<li><a
href=
"#collapse-methods"
>
Methods
</a></li>
<li><a
href=
"#collapse-methods"
>
Methods
</a></li>
...
...
docs/assets/css/docs.min.css
View file @
9928144d
This diff is collapsed.
Click to expand it.
docs/assets/css/src/docs.css
View file @
9928144d
...
@@ -1146,6 +1146,11 @@ h1[id] {
...
@@ -1146,6 +1146,11 @@ h1[id] {
overflow
:
auto
;
overflow
:
auto
;
}
}
/* Simple collapse example */
#collapseExample
.well
{
margin-bottom
:
0
;
}
/* Don't wrap event names in Events tables in JS plugin docs */
/* Don't wrap event names in Events tables in JS plugin docs */
.bs-events-table
>
thead
>
tr
>
th
:first-child
,
.bs-events-table
>
thead
>
tr
>
th
:first-child
,
.bs-events-table
>
tbody
>
tr
>
td
:first-child
{
.bs-events-table
>
tbody
>
tr
>
td
:first-child
{
...
...
docs/assets/js/customize.min.js
View file @
9928144d
This diff is collapsed.
Click to expand it.
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