web/_javascript/modules/components/tooltip-loader.js

13 lines
269 B
JavaScript
Raw Normal View History

/**
* Initial Bootstrap Tooltip.
*/
export function loadTooptip() {
const tooltipTriggerList = document.querySelectorAll(
'[data-bs-toggle="tooltip"]'
);
[...tooltipTriggerList].map(
(tooltipTriggerEl) => new bootstrap.Tooltip(tooltipTriggerEl)
);
}