mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Merge pull request #18708 from Johann-S/showDoc
Add documentation for Tab plugin's `show` method
This commit is contained in:
commit
c3ae4be961
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user