Skip to content

Instantly share code, notes, and snippets.

@bacoords
Created January 11, 2022 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bacoords/705522ad5a3333c058c7c7c85ec1bb3c to your computer and use it in GitHub Desktop.
Save bacoords/705522ad5a3333c058c7c7c85ec1bb3c to your computer and use it in GitHub Desktop.
Understrap - how to use bootstrap components
// Add your custom JS here.
import Popover from 'bootstrap/js/dist/popover'
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new Popover(popoverTriggerEl)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment