mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-11-30 20:10:18 +08:00
12 lines
270 B
JavaScript
12 lines
270 B
JavaScript
import Tooltip from 'bootstrap/js/src/tooltip';
|
|
|
|
export function loadTooptip() {
|
|
const tooltipTriggerList = document.querySelectorAll(
|
|
'[data-bs-toggle="tooltip"]'
|
|
);
|
|
|
|
[...tooltipTriggerList].map(
|
|
(tooltipTriggerEl) => new Tooltip(tooltipTriggerEl)
|
|
);
|
|
}
|