Skip to content

arunjayakumar07/toastJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

toastJS

A light weight Javascript library for showing customized toast messages in websites

Add toast.js to html and use the showError() method to display message

showError(param1,param2,param3)

  • param1 - message
  • param2 - type of message ('success','error','loading')
  • param3 - if true, hide the message after 2 seconds .false, the message will not hide from screen unless hideError() method is called.

hideError()

  • Hides the toast message fom the screen.
Error Toasts

showError('message','error',true);

Loading Toasts

showError('message','loading',true);

Success Toasts

showError('message','success',true);

About

A light weight JAvascript library for showing customized toast messages in websites

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published