Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

initialize toast

var toastTrigger = document.getElementById('liveToastBtn')
var toastLiveExample = document.getElementById('liveToast')
if (toastTrigger) {
  toastTrigger.addEventListener('click', function () {
    var toast = new bootstrap.Toast(toastLiveExample)

    toast.show()
  })
}
Source by getbootstrap.com #
 
PREVIOUS NEXT
Tagged: #initialize #toast
ADD COMMENT
Topic
Name
3+1 =