mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 01:21:49 +02:00
Fix
This commit is contained in:
committed by
Mark Otto
parent
b14190b509
commit
77e17e3b8d
@@ -677,7 +677,7 @@ Destroys an element's tab.
|
||||
|
||||
#### getInstance
|
||||
|
||||
*Static* method which allows you to get the tab instance associated with a DOM element
|
||||
*Static* method which allows you to get the tab instance associated with a DOM element.
|
||||
|
||||
```js
|
||||
const tab = bootstrap.Tab.getInstance('#trigger') // Returns a Bootstrap tab instance
|
||||
@@ -685,7 +685,7 @@ const tab = bootstrap.Tab.getInstance('#trigger') // Returns a Bootstrap tab ins
|
||||
|
||||
#### getOrCreateInstance
|
||||
|
||||
*Static* method which allows you to get the tab instance associated with a DOM element, or create a new one in case it wasn't initialized
|
||||
*Static* method which allows you to get the tab instance associated with a DOM element, or create a new one in case it wasn't initialized.
|
||||
|
||||
```js
|
||||
const tab = bootstrap.Tab.getOrCreateInstance('#trigger') // Returns a Bootstrap tab instance
|
||||
|
Reference in New Issue
Block a user