nice-toast-js
v0.2.3
Published
jquery easy & nice Toast
Downloads
55
Maintainers
Readme
Nice Toast JS
nice and easy toast for jquery
Requirements
Installation
NPM
npm install nice-toast-js
Yarn
yarn add nice-toast-js
CDN - jsDelivr
<!-- CSS -->
<link href="https://cdn.jsdelivr.net/npm/nice-toast-js/dist/css/nice-toast-js.min.css" rel="stylesheet" type="text/css" />
<!-- JavaScript -->
<script src="https://cdn.jsdelivr.net/npm/nice-toast-js/dist/js/nice-toast-js.min.js" type="text/javascript"></script>
CDN - UNPKG
<!-- CSS -->
<link href="https://unpkg.com/nice-toast-js/dist/css/nice-toast-js.min.css" rel="stylesheet" type="text/css" />
<!-- JavaScript -->
<script src="https://unpkg.com/nice-toast-js/dist/js/nice-toast-js.min.js" type="text/javascript"></script>
Usage
Initialize the Plugin
$.niceToast.setup({
position: "top-center",
timeout: 5000,
});
New toast
$('button').click(function () {
$.niceToast.error("I'm a toast!");
});
License
MIT