diff --git a/javascript.html b/javascript.html index 4fed27e48e..2b03b0927f 100644 --- a/javascript.html +++ b/javascript.html @@ -1574,6 +1574,13 @@ $('.btn-group').button()
The collapse plugin utilizes a few classes to handle the heavy lifting:
+.collapse
hides the content.collapse.in
shows the content.collapsing
is added when the transition starts, and removed when it finishesThese classes can be found in component-animations.less
.
Just add data-toggle="collapse"
and a data-target
to element to automatically assign control of a collapsible element. The data-target
attribute accepts a CSS selector to apply the collapse to. Be sure to add the class collapse
to the collapsible element. If you'd like it to default open, add the additional class in
.