diff options
Diffstat (limited to 'site/content/docs/5.1/components/buttons.md')
| -rw-r--r-- | site/content/docs/5.1/components/buttons.md | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/site/content/docs/5.1/components/buttons.md b/site/content/docs/5.1/components/buttons.md index d0298f65e..1924eab00 100644 --- a/site/content/docs/5.1/components/buttons.md +++ b/site/content/docs/5.1/components/buttons.md @@ -174,9 +174,8 @@ var bsButton = new bootstrap.Button(button) | --- | --- | | `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: <code>bootstrap.Button.getInstance(element)</code>| -| `getOrCreateInstance` | Static method which returns a button instance associated to a DOM element or create a new one in case it wasn't initialised. -You can use it like this: <code>bootstrap.Button.getOrCreateInstance(element)</code> | +| `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 initialised. You can use it like this: `bootstrap.Button.getOrCreateInstance(element)` | {{< /bs-table >}} For example, to toggle all buttons |
