diff options
Diffstat (limited to 'site/content/docs')
| -rw-r--r-- | site/content/docs/5.0/components/alerts.md | 1 | ||||
| -rw-r--r-- | site/content/docs/5.0/components/modal.md | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/site/content/docs/5.0/components/alerts.md b/site/content/docs/5.0/components/alerts.md index 338976323..1df07983e 100644 --- a/site/content/docs/5.0/components/alerts.md +++ b/site/content/docs/5.0/components/alerts.md @@ -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. diff --git a/site/content/docs/5.0/components/modal.md b/site/content/docs/5.0/components/modal.md index 56fad0297..7b8902820 100644 --- a/site/content/docs/5.0/components/modal.md +++ b/site/content/docs/5.0/components/modal.md @@ -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" %}} |
