1.0.10 • Published 11 months ago

js-toast-msg v1.0.10

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

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

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.5

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago