1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 00:59:51 +02:00

Docs: alphabetical reorder of some events/methods in tables (#36669)

This commit is contained in:
Julien Déramond
2022-07-06 07:33:28 +02:00
committed by GitHub
parent 3f324eed02
commit 22c7503c88
3 changed files with 20 additions and 20 deletions

View File

@@ -186,10 +186,10 @@ const bsButton = new bootstrap.Button('#myButton')
{{< bs-table "table" >}}
| Method | Description |
| --- | --- |
| `toggle` | Toggles push state. Gives the button the appearance that it has been activated. |
| `dispose` | Destroys an element's button. (Removes stored data on the DOM element) |
| `getInstance` | Static method which allows you to get the button instance associated to a DOM element, you can use it like this: `bootstrap.Button.getInstance(element)`|
| `getOrCreateInstance` | Static method which returns a button instance associated to a DOM element or create a new one in case it wasn't initialized. You can use it like this: `bootstrap.Button.getOrCreateInstance(element)` |
| `toggle` | Toggles push state. Gives the button the appearance that it has been activated. |
{{< /bs-table >}}
For example, to toggle all buttons