From: Chris Rebert Date: Thu, 26 Mar 2015 00:47:08 +0000 (-0700) Subject: Properly document $(...).tab('show') method; fixes #16115 X-Git-Tag: v3.3.5~190^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16156%2Fhead;p=thirdparty%2Fbootstrap.git Properly document $(...).tab('show') method; fixes #16115 [skip sauce] --- diff --git a/docs/_includes/js/tabs.html b/docs/_includes/js/tabs.html index 16fa6e05d9..8c4c3c08ff 100644 --- a/docs/_includes/js/tabs.html +++ b/docs/_includes/js/tabs.html @@ -94,29 +94,12 @@ $('#myTabs li:eq(2) a').tab('show') // Select third tab (0-indexed)

Methods

$().tab

- Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM. + Activates a tab element and content container. Tab should have either a data-target or an href targeting a container node in the DOM. In the above examples, the tabs are the <a>s with data-toggle="tab" attributes.

-{% highlight html %} - -
-
...
-
...
-
...
-
...
-
- - -{% endhighlight %} +

.tab('show')

+

Selects the given tab and shows its associated content. Any other tab that was previously selected becomes unselected and its associated content is hidden.

+ {% highlight js %}$('#someTab').tab('show'){% endhighlight %}

Events

When showing a new tab, the events fire in the following order: