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