From: Johann-S Date: Sun, 27 Dec 2015 20:11:17 +0000 (+0100) Subject: [Tab] Add documentation for method show X-Git-Tag: v4.0.0-alpha.3~408^2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F18708%2Fhead;p=thirdparty%2Fbootstrap.git [Tab] Add documentation for method show --- diff --git a/docs/components/navs.md b/docs/components/navs.md index 3552b91258..734eb50465 100644 --- a/docs/components/navs.md +++ b/docs/components/navs.md @@ -337,6 +337,14 @@ Activates a tab element and content container. Tab should have either a `data-ta {% 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. **Returns to the caller before the tab pane has actually been shown** (i.e. before the `shown.bs.tab` event occurs). + +{% highlight js %} +$('#someTab').tab('show') +{% endhighlight %} + ### Events When showing a new tab, the events fire in the following order: