1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-01 01:21:49 +02:00
This commit is contained in:
louismaximepiton
2022-08-29 14:11:13 +02:00
committed by Mark Otto
parent b14190b509
commit 77e17e3b8d
14 changed files with 39 additions and 39 deletions

View File

@@ -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