Pure JS Android Like Toast For Your Web Application – atoast.js

Category: Javascript , Notification | July 6, 2015
Author: maqboolkhan
Views Total: 2,441
Official Page: Go to website
Last Update: July 6, 2015
License: MIT

Preview:

Pure JS Android Like Toast For Your Web Application – atoast.js

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);

You Might Be Interested In:


Leave a Reply