initialize toast

Solutions on MaxInterview for initialize toast by the best coders in the world

showing results for - "initialize toast"
Aitana
02 Feb 2017
1var toastTrigger = document.getElementById('liveToastBtn')
2var toastLiveExample = document.getElementById('liveToast')
3if (toastTrigger) {
4  toastTrigger.addEventListener('click', function () {
5    var toast = new bootstrap.Toast(toastLiveExample)
6
7    toast.show()
8  })
9}
10
similar questions
queries leading to this page
initialize toast