show-toast
Overview
A Toast Box
Install
Install show-toast
npm install show-toast
Import show-toast
ES6/commonjs import style is supported.
// ES6; // commonjsvar showToast = ;
or link as a script
in an html file and access global variable showToast
.
<script src="dist/show-toast.js"></script>
Usage
options
Option | Description | default | type | acceptable values |
---|---|---|---|---|
str | toast text content | null | String | - |
time | time duration | 2000 | Number | - |
postion | toast postion | 'middle' | String | 'top' 'middle' 'bottom' |
LICENSE
MIT@PLDaily