1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-13 17:14:04 +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)
})
```
{{< 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.

View File

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