}
// Instantiate all toasts in docs pages only
- for (const toastNode of document.querySelectorAll('.bd-example .toast')) {
- const toast = new bootstrap.Toast(toastNode, {
+ for (const toastEl of document.querySelectorAll('.bd-example .toast')) {
+ const toast = new bootstrap.Toast(toastEl, {
autohide: false
})
new bootstrap.Popover(popover)
}
- for (const toastNode of document.querySelectorAll('.toast')) {
- const toast = new bootstrap.Toast(toastNode, {
+ for (const toastEl of document.querySelectorAll('.toast')) {
+ const toast = new bootstrap.Toast(toastEl, {
autohide: false
})
<script type="module">
import { Toast } from 'bootstrap.esm.min.js'
- for (const toastNode of document.querySelectorAll('.toast')) {
- new Toast(toastNode))
+ for (const toastEl of document.querySelectorAll('.toast')) {
+ new Toast(toastEl))
}
</script>
```