2024-05-11 10:29:14 +08:00
|
|
|
import Tooltip from 'bootstrap/js/src/tooltip';
|
|
|
|
|
2023-03-13 20:20:59 +08:00
|
|
|
export function loadTooptip() {
|
2023-04-10 10:54:27 +08:00
|
|
|
const tooltipTriggerList = document.querySelectorAll(
|
|
|
|
'[data-bs-toggle="tooltip"]'
|
|
|
|
);
|
|
|
|
|
|
|
|
[...tooltipTriggerList].map(
|
2024-05-11 10:29:14 +08:00
|
|
|
(tooltipTriggerEl) => new Tooltip(tooltipTriggerEl)
|
2023-04-10 10:54:27 +08:00
|
|
|
);
|
2023-03-13 20:20:59 +08:00
|
|
|
}
|