aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2015-12-27 21:11:17 +0100
committerJohann-S <[email protected]>2015-12-27 21:11:17 +0100
commite36fd5a9b2c14fe92fd331bd65c2afb1fc33db55 (patch)
treea5d7c91664c4dc1b3f5500b5ad499ce2ac128107 /docs
parent699c6bb383d0c0179ff0b895ce0520b005db28b1 (diff)
downloadbootstrap-e36fd5a9b2c14fe92fd331bd65c2afb1fc33db55.tar.xz
bootstrap-e36fd5a9b2c14fe92fd331bd65c2afb1fc33db55.zip
[Tab] Add documentation for method show
Diffstat (limited to 'docs')
-rw-r--r--docs/components/navs.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/components/navs.md b/docs/components/navs.md
index 3552b9125..734eb5046 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
</script>
{% 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: