Skip to content

negi141/a-toast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

a-toast

A JavaScript library for toast notification

  • Simple look like android notification.
  • Does not depend on jQuery.

Install

npm install negi141/a-toast

Demo

https://negi141.github.io/a-toast/

Usage

<link rel="stylesheet" href="a-toast.css" />

<script src="a-toast.js"></script>
var toast = new aToast();

// Set options (optional)
//   speed : Display time. millisecond. default=4000.
//   position : Display position. 'top' or 'bottom'. default='top'.
toast.setOption(speed, position);

// Show notifications
//   message : The text to display
//   style : Notification color. '' or 'success' or 'warn' or 'danger'. default=''. 
toast.show(message, style);
toast.success(message);
toast.warn(message);
toast.danger(message);

About

A JavaScript library for toast notifications like Android

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors