From: Mark Otto Date: Mon, 1 Dec 2014 01:10:13 +0000 (-0800) Subject: clarify collapse example with link and button triggers; also mention classes X-Git-Tag: v3.3.2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ec5152da1453a6376739e4f0dd7f24187b9b56;p=thirdparty%2Fbootstrap.git clarify collapse example with link and button triggers; also mention classes --- diff --git a/docs/_includes/js/collapse.html b/docs/_includes/js/collapse.html index b7a9acacce..4233f1da2b 100644 --- a/docs/_includes/js/collapse.html +++ b/docs/_includes/js/collapse.html @@ -1,8 +1,7 @@

Collapse collapse.js

-

About

-

Get base styles and flexible support for collapsible components like accordions and navigation.

+

Flexible plugin that utilizes a handful of classes for easy toggle behavior.

Plugin dependency

@@ -10,12 +9,23 @@

Example

-

Click the button below to show and hide another element.

+

Click the buttons below to show and hide another element via class changes:

+ +

You can use a link with the href attribute, or a button with the data-target attribute. In both cases, the data-toggle="collapse" is required.

- +

+ + +

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. @@ -23,8 +33,11 @@
{% highlight html %} +
@@ -34,7 +47,7 @@ {% endhighlight %}

Accordion example

-

You can extend the collapse plugin with the panel component to create an accordion.

+

Extend the default collapse behavior to create an accordion with the panel component.