Author: | maqboolkhan |
---|---|
Views Total: | 615 views |
Official Page: | Go to website |
Last Update: | July 6, 2015 |
License: | MIT |
Preview:

Description:
aToast.js is a pure JS written Android like toast no need of any dependency.
How to use it:
Add atoast.js script in your html.
<script src="aToast-min.js"></script>
Set the options.
toast = aToast({ // right, left, center dir:"right", // distance from top top:20, // distance from right right:40, // maximum width of the toast maxWidth: 400, // font family font: 'TREBUCHET MS', // font size fontSize: 13px, // font bold bold: false });
Show the toast.
// toast.show(msg, hold); toast.show("Toast message", 2);