0.2.3 • Published 3 years ago

nice-toast-js v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Nice Toast JS

nice and easy toast for jquery

npm version

Nice Toast JS

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