mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-19 16:54:24 +01:00
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
This commit is contained in:
commit
004e30866c
@ -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