Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

toast js

new Toast({
  message: 'This is an example with custom buttons',
  type: 'success',
  customButtons: [
    {
      text: 'Refresh the page',
      onClick: function() {
        window.location.reload();
      }
    },
    {
      text: 'Follow @ireaderinokun',
      onClick: function() {
        window.open('https://twitter.com/ireaderinokun');
      }
    }
  ]
});
Comment

toast js

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

    toast.show()
  })
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native when debug crash 
Javascript :: concat keys json 
Javascript :: axios 400 bad request 
Javascript :: react-timeago npm 
Javascript :: js csv to json 
Javascript :: js what does var mean 
Javascript :: js remove all attributes from element 
Javascript :: Progress bar loader angular 
Javascript :: ajax returning html instead of json 
Javascript :: inbox 
Javascript :: react native date time picker modal 
Javascript :: js queryselector 
Javascript :: Forward propagation in NN 
Javascript :: js string includes count 
Javascript :: object destructuring es6 
Javascript :: js some 
Javascript :: modify array js 
Javascript :: vuejs events modifier 
Javascript :: multiple refs react 
Javascript :: remove duplicate values from string in javascript 
Javascript :: udpdate records using axios http put method 
Javascript :: run two function after one another 
Javascript :: send request express 
Javascript :: Nodemailer Google Passport Oauth Strategy 
Javascript :: get vue-emoji-picker 
Javascript :: angular content-security-policy header 
Javascript :: linkedlist javascript 
Javascript :: express nodejs 
Javascript :: node 
Javascript :: javascript access map elements 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =