document.getElementById("new-toast").addEventListener("click", function() {
Toastify({
text: "This is a toast",
duration: 3000,
close: true,
gravity: "top", // `top` or `bottom`
position: "right", // `left`, `center` or `right`
stopOnFocus: true, // Prevents dismissing of toast on hover
style: {
// background: "linear-gradient(to right, #00b09b, #96c93d)",
},
onClick: function(){} // Callback after click
}).showToast();
});
forked from apvarun/toastify-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Pure JavaScript library for better notification messages
License
thinesjs/toastify-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Pure JavaScript library for better notification messages
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- JavaScript 81.8%
- CSS 11.5%
- HTML 6.7%