mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Add missing newlines around fenced codeblocks (#34630)
This commit is contained in:
parent
742269a734
commit
23fd488c38
@ -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.
|
||||
|
||||
|
@ -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" %}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user