2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-15 11:59:39 +03:00

[Tab] Add documentation for method show

This commit is contained in:
Johann-S
2015-12-27 21:11:17 +01:00
parent 699c6bb383
commit e36fd5a9b2
+8
View 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: