1.0.7 • Published 3 years ago
erinnern v1.0.7
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')