nice-toast-js

0.2.3 • Public • Published

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

Package Sidebar

Install

npm i nice-toast-js

Weekly Downloads

19

Version

0.2.3

License

MIT

Unpacked Size

85.2 kB

Total Files

17

Last publish

Collaborators

  • hasanart