]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
[Tab] Add documentation for method show 18708/head
authorJohann-S <johann.servoire@gmail.com>
Sun, 27 Dec 2015 20:11:17 +0000 (21:11 +0100)
committerJohann-S <johann.servoire@gmail.com>
Sun, 27 Dec 2015 20:11:17 +0000 (21:11 +0100)
docs/components/navs.md

index 3552b912582762ee4056f77f4366b77a47b0c09f..734eb5046540380c437e8c20ee5ccf2e3e3b36f3 100644 (file)
@@ -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: