// --------
// Tooltips
// --------
- // Instanciate all tooltips in a docs or StackBlitz page
+ // Instantiate all tooltips in a docs or StackBlitz page
document.querySelectorAll('[data-bs-toggle="tooltip"]')
.forEach(tooltip => {
new bootstrap.Tooltip(tooltip)
// --------
// Popovers
// --------
- // Instanciate all popovers in a docs or StackBlitz page
+ // Instantiate all popovers in a docs or StackBlitz page
document.querySelectorAll('[data-bs-toggle="popover"]')
.forEach(popover => {
new bootstrap.Popover(popover)
})
}
- // Instanciate all toasts in a docs page only
+ // Instantiate all toasts in a docs page only
document.querySelectorAll('.bd-example .toast')
.forEach(toastNode => {
const toast = new bootstrap.Toast(toastNode, {
toast.show()
})
- // Instanciate all toasts in a docs page only
+ // Instantiate all toasts in a docs page only
const toastTrigger = document.getElementById('liveToastBtn')
const toastLiveExample = document.getElementById('liveToast')
if (toastTrigger) {