mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-11 18:02:28 +03:00
Use a streamlined way to trigger component dismiss (#34170)
* use a streamlined way to trigger component dismiss * add documentation Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -341,6 +341,10 @@ var toastList = toastElList.map(function (toastEl) {
|
||||
})
|
||||
```
|
||||
|
||||
### Triggers
|
||||
|
||||
{{% js-dismiss "toast" %}}
|
||||
|
||||
### Options
|
||||
|
||||
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to `data-bs-`, as in `data-bs-animation=""`.
|
||||
|
||||
Reference in New Issue
Block a user