2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-14 18:42:30 +03: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
@@ -485,7 +485,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
@@ -493,7 +493,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