erinnern

1.0.7 • Public • Published

Erinnern is a html notice component which written in javascript

Notice

Please use package 'handy-toast' instead this one, 'handy-toast' is another version of erinnern

(This is a font-end component, please use it in the webpack environment, otherwise it may not work)

Example

// in the main.js file
// import
import Erinnern from "erinnern"
// create an instance
const instance = new Erinnern()
// initialize
instance.init()
// three types of notice:
// Success type
window.$notice.success('This is a success message', 'Success')
// Warning type
window.$notice.warning('This is a warning message', 'Warning')
// Error type
window.$notice.error('This is a error message', 'Error')

Output

Output

Readme

Keywords

Package Sidebar

Install

npm i erinnern

Weekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

54.8 kB

Total Files

14

Last publish

Collaborators

  • eli_xi