From 88ec5152da1453a6376739e4f0dd7f24187b9b56 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 30 Nov 2014 17:10:13 -0800 Subject: [PATCH] clarify collapse example with link and button triggers; also mention classes --- docs/_includes/js/collapse.html | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/docs/_includes/js/collapse.html b/docs/_includes/js/collapse.html index b7a9acacc..4233f1da2 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.