1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 09:04:14 +02:00

Add missing newlines around fenced codeblocks (#34630)

This commit is contained in:
XhmikosR
2021-07-30 08:56:36 +03:00
committed by GitHub
parent 742269a734
commit 23fd488c38
2 changed files with 2 additions and 0 deletions

View File

@@ -196,6 +196,7 @@ var alerts = [].slice.call(alertList).map(function (element) {
return new bootstrap.Alert(element) return new bootstrap.Alert(element)
}) })
``` ```
{{< callout info >}} {{< callout info >}}
For the sole purpose of dismissing an alert, it isn't necessary to initialize the component manually via the JS API. By making use of `data-bs-dismiss="alert"`, the component will be initialized automatically and properly dismissed. For the sole purpose of dismissing an alert, it isn't necessary to initialize the component manually via the JS API. By making use of `data-bs-dismiss="alert"`, the component will be initialized automatically and properly dismissed.

View File

@@ -838,6 +838,7 @@ Activate a modal without writing JavaScript. Set `data-bs-toggle="modal"` on a c
```html ```html
<button type="button" data-bs-toggle="modal" data-bs-target="#myModal">Launch modal</button> <button type="button" data-bs-toggle="modal" data-bs-target="#myModal">Launch modal</button>
``` ```
#### Dismiss #### Dismiss
{{% js-dismiss "modal" %}} {{% js-dismiss "modal" %}}