mirror of
https://github.com/rottenwheel/moner.ooo.git
synced 2024-12-22 21:59:21 +00:00
8 lines
310 B
JavaScript
8 lines
310 B
JavaScript
import Tooltip from "bootstrap/js/dist/tooltip";
|
|
var tooltipTriggerList = [].slice.call(
|
|
document.querySelectorAll('[data-toggle="tooltip"]')
|
|
);
|
|
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
|
|
return new Tooltip(tooltipTriggerEl, { placement: "top" });
|
|
});
|
|
console.log(tooltipList);
|