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:
@@ -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.
|
||||||
|
|
||||||
|
@@ -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" %}}
|
||||||
|
Reference in New Issue
Block a user