mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-12 16:44:17 +02:00
Docs: fix specification for getInstance (#41297)
Co-authored-by: Julien Déramond <juderamond@gmail.com>
This commit is contained in:
@@ -246,7 +246,7 @@ const tooltip = new bootstrap.Tooltip(element, {
|
|||||||
| `disable` | Removes the ability for an element's tooltip to be shown. The tooltip will only be able to be shown if it is re-enabled. |
|
| `disable` | Removes the ability for an element's tooltip to be shown. The tooltip will only be able to be shown if it is re-enabled. |
|
||||||
| `dispose` | Hides and destroys an element's tooltip (Removes stored data on the DOM element). Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements. |
|
| `dispose` | Hides and destroys an element's tooltip (Removes stored data on the DOM element). Tooltips that use delegation (which are created using [the `selector` option](#options)) cannot be individually destroyed on descendant trigger elements. |
|
||||||
| `enable` | Gives an element's tooltip the ability to be shown. **Tooltips are enabled by default.** |
|
| `enable` | Gives an element's tooltip the ability to be shown. **Tooltips are enabled by default.** |
|
||||||
| `getInstance` | *Static* method which allows you to get the tooltip instance associated with a DOM element, or create a new one in case it wasn't initialized. |
|
| `getInstance` | *Static* method which allows you to get the tooltip instance associated with a DOM element. |
|
||||||
| `getOrCreateInstance` | *Static* method which allows you to get the tooltip instance associated with a DOM element, or create a new one in case it wasn't initialized. |
|
| `getOrCreateInstance` | *Static* method which allows you to get the tooltip instance associated with a DOM element, or create a new one in case it wasn't initialized. |
|
||||||
| `hide` | Hides an element's tooltip. **Returns to the caller before the tooltip has actually been hidden** (i.e. before the `hidden.bs.tooltip` event occurs). This is considered a "manual" triggering of the tooltip. |
|
| `hide` | Hides an element's tooltip. **Returns to the caller before the tooltip has actually been hidden** (i.e. before the `hidden.bs.tooltip` event occurs). This is considered a "manual" triggering of the tooltip. |
|
||||||
| `setContent` | Gives a way to change the tooltip's content after its initialization. |
|
| `setContent` | Gives a way to change the tooltip's content after its initialization. |
|
||||||
|
Reference in New Issue
Block a user