js-toast-msg
TypeScript icon, indicating that this package has built-in type declarations

1.0.10 • Public • Published

Installation

Install with npm:

$ npm install js-toast-msg

Usage and Examples

import { toast } from 'js-toast-msg';

const pageTitle = 'home';  

/**
* Displays the toast message.
*/
toast.showMessage(`pageTitle= ${pageTitle}`); 
/**
* Change the displayed time of the toast message.
* The property of the parameter is millisecond.
*/
toast.setDuration(5000); 
/**
* Change the font size of the toast message.
*/
toast.setFontSize(15);  

Contributors

peter.yo

Licenced

MIT

Readme

Keywords

Package Sidebar

Install

npm i js-toast-msg

Weekly Downloads

1

Version

1.0.10

License

MIT

Unpacked Size

12.8 kB

Total Files

6

Last publish

Collaborators

  • gonacon