]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Document that Tab show method is async 16747/head
authorChris Rebert <code@rebertia.com>
Wed, 1 Jul 2015 23:42:13 +0000 (16:42 -0700)
committerChris Rebert <code@rebertia.com>
Wed, 1 Jul 2015 23:42:13 +0000 (16:42 -0700)
[skip sauce]

docs/_includes/js/tabs.html

index 5ce8a766eb2cd8df8da64a3c24e816fbc75e3f07..033b4243039fc55626ded7c4f8a60502c7b6bdf7 100644 (file)
@@ -98,7 +98,7 @@ $('#myTabs li:eq(2) a').tab('show') // Select third tab (0-indexed)
   </p>
 
   <h4><code>.tab('show')</code></h4>
-  <p>Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden.</p>
+  <p>Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden. <strong>Returns to the caller before the tab pane has actually been shown</strong> (i.e. before the <code>shown.bs.tab</code> event occurs).</p>
   {% highlight js %}$('#someTab').tab('show'){% endhighlight %}
 
   <h3 id="tabs-events">Events</h3>