mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
Display popover on harvey balls not in a zone
This wraps bootstrap styles in `sqm_bootstrap` which can now selectively import specific desired pieces of bootstrap styling
This commit is contained in:
parent
00a0e5868c
commit
4fafe2cb50
12 changed files with 99 additions and 26 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { Popover } from "bootstrap";
|
||||
|
||||
export function initializeListenersForNavDropdowns() {
|
||||
const schoolDropdown = document.querySelector("#select-school");
|
||||
if (schoolDropdown) {
|
||||
|
|
@ -14,3 +16,11 @@ export function initializeListenersForNavDropdowns() {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
export function initializePopovers() {
|
||||
document
|
||||
.querySelectorAll('[data-bs-toggle="popover"]')
|
||||
.forEach(popoverElement => {
|
||||
new Popover(popoverElement, { trigger: 'hover focus' })
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue