1.1.4 • Published 6 years ago

show-toast v1.1.4

Weekly downloads
121
License
MIT
Repository
github
Last release
6 years ago

show-toast

Build Status npm npm npm Coverage Status npm

Overview

A Toast Box

demo

Install

Install show-toast

npm install show-toast

Import show-toast

ES6/commonjs import style is supported.

// ES6
import showToast from 'show-toast';

// commonjs
var showToast = require("show-toast");

or link as a script in an html file and access global variable showToast.

<script src="dist/show-toast.js"></script>

Usage

showToast('this is a success toast box')

showToast({
  str: "this is a success toast box",
  time: 2000,
  position: 'top'
})

showToast({
  str: 'this is an error toast box',
  time: 2000
})

options

OptionDescriptiondefaulttypeacceptable values
strtoast text contentnullString-
timetime duration2000Number-
postiontoast postion'middle'String'top' 'middle' 'bottom'

LICENSE

MIT@PLDaily

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago