From e723395cc3371d3d499dc2448baadcd7aa13b34a Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Wed, 1 Jul 2015 16:39:12 -0700 Subject: [PATCH] Document that Collapse show,hide,toggle methods are async; fixes #16746 [skip sauce] --- docs/_includes/js/collapse.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/_includes/js/collapse.html b/docs/_includes/js/collapse.html index 084bb4badc..6d856862a9 100644 --- a/docs/_includes/js/collapse.html +++ b/docs/_includes/js/collapse.html @@ -229,13 +229,13 @@ $('#myCollapsible').collapse({ {% endhighlight %}

.collapse('toggle')

-

Toggles a collapsible element to shown or hidden.

+

Toggles a collapsible element to shown or hidden. Returns to the caller before the collapsible element has actually been shown or hidden (i.e. before the shown.bs.collapse or hidden.bs.collapse event occurs).

.collapse('show')

-

Shows a collapsible element.

+

Shows a collapsible element. Returns to the caller before the collapsible element has actually been shown (i.e. before the shown.bs.collapse event occurs).

.collapse('hide')

-

Hides a collapsible element.

+

Hides a collapsible element. Returns to the caller before the collapsible element has actually been hidden (i.e. before the hidden.bs.collapse event occurs).

Events

Bootstrap's collapse class exposes a few events for hooking into collapse functionality.