ttoast
Mobile Toast Component
Last updated 3 years ago by lishengzxc .
MIT · Original npm · Tarball · package.json
$ cnpm install ttoast 
SYNC missed versions from official npm registry.

ttoast

Toast Component

npm npm npm

Demo

https://lishengzxc.github.io/toast/

Install

npm install ttoast --save

Usage

html

<body>
  <button id="toast">toast</button>
  <script src="build/toast.js"></script>
  <script>
    toast.addEventListener('click', () => {
      Toast('你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界你好世界')
    }, false)
  </script>
</body>

API

Basic

Toast('hello world~')

Duration

Toast({
  message: 'hello world~',
  duration: 5000
});

LICENSE

MIT

Current Tags

  • 0.1.5                                ...           latest (3 years ago)

6 Versions

  • 0.1.5                                ...           3 years ago
  • 0.1.4                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (17)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |