Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markd.otto@gmail.com>2022-03-14 10:38:04 +0300
committerGitHub <noreply@github.com>2022-03-14 10:38:04 +0300
commita9a89debc7535a1c5857ced28c1002a2f682889f (patch)
treec12f21a8b666d8a0605126dd4488cff41e1861b4 /site/content/docs/5.1/components/buttons.md
parent8fe82c7176a577190f2d69f9cbdd990b7f3c8493 (diff)
Rewrite docs tables in Markdown with table shortcode (#31337)
Co-authored-by: XhmikosR <xhmikosr@gmail.com> Co-authored-by: GeoSot <geo.sotis@gmail.com>
Diffstat (limited to 'site/content/docs/5.1/components/buttons.md')
-rw-r--r--site/content/docs/5.1/components/buttons.md51
1 files changed, 8 insertions, 43 deletions
diff --git a/site/content/docs/5.1/components/buttons.md b/site/content/docs/5.1/components/buttons.md
index 7f400df1a1..bacc6b23d2 100644
--- a/site/content/docs/5.1/components/buttons.md
+++ b/site/content/docs/5.1/components/buttons.md
@@ -184,49 +184,14 @@ var button = document.getElementById('myButton')
var bsButton = new bootstrap.Button(button)
```
-<table class="table">
- <thead>
- <tr>
- <th>Method</th>
- <th>Description</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <code>toggle</code>
- </td>
- <td>
- Toggles push state. Gives the button the appearance that it has been activated.
- </td>
- </tr>
- <tr>
- <td>
- <code>dispose</code>
- </td>
- <td>
- Destroys an element's button. (Removes stored data on the DOM element)
- </td>
- </tr>
- <tr>
- <td>
- <code>getInstance</code>
- </td>
- <td>
- 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>
- </td>
- </tr>
- <tr>
- <td>
- <code>getOrCreateInstance</code>
- </td>
- <td>
- 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: <code>bootstrap.Button.getOrCreateInstance(element)</code>
- </td>
- </tr>
- </tbody>
-</table>
+{{< 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)` |
+{{< /bs-table >}}
For example, to toggle all buttons