aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2016-01-06 15:01:41 -0800
committerMark Otto <[email protected]>2016-01-06 15:01:41 -0800
commit004e30866c251c74600d43389df9255102fb19ff (patch)
treed1c9b4c62682ff7c0dc5165abfacd8ecbc670501
parent8812541b830b2eb8e66b244afeb5f4eae8199667 (diff)
parentc3ae4be961c7239e5e9efdb0e188ecce5111c1a3 (diff)
downloadbootstrap-004e30866c251c74600d43389df9255102fb19ff.tar.xz
bootstrap-004e30866c251c74600d43389df9255102fb19ff.zip
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
-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: