mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 23:04:32 +02:00
Correct Toast docs (#34604)
Removes incorrect references to scrollspy in Toasts documentation
This commit is contained in:
@@ -411,7 +411,7 @@ toast.dispose()
|
|||||||
|
|
||||||
#### getInstance
|
#### getInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the scrollspy instance associated with a DOM element
|
*Static* method which allows you to get the toast instance associated with a DOM element
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var myToastEl = document.getElementById('myToastEl')
|
var myToastEl = document.getElementById('myToastEl')
|
||||||
@@ -420,7 +420,7 @@ var myToast = bootstrap.Toast.getInstance(myToastEl) // Returns a Bootstrap toas
|
|||||||
|
|
||||||
#### getOrCreateInstance
|
#### getOrCreateInstance
|
||||||
|
|
||||||
*Static* method which allows you to get the scrollspy instance associated with a DOM element, or create a new one in case it wasn't initialised
|
*Static* method which allows you to get the toast instance associated with a DOM element, or create a new one in case it wasn't initialised
|
||||||
|
|
||||||
```js
|
```js
|
||||||
var myToastEl = document.getElementById('myToastEl')
|
var myToastEl = document.getElementById('myToastEl')
|
||||||
|
Reference in New Issue
Block a user