1.0.3 • Published 4 years ago
maya-notice v1.0.3
maya-notice
A simple, lightweight notification plugin
install
npm install maya-notice --save
usage
quick use
import notice from "maya-notice";
import "maya-notice/src/style.css";
notice.info("hello world");
notice.success("hello world");
notice.warning("hello world");
notice.error("hello world");
notice.loading("Loading...please wait");
Use more options
notice.open({
type : 'error',
content : 'hi how are you',
duration : 5000,
maskable : true,
onClose : function(){
alert('closed');
}
});
notice.close();
execute callback function after closing
notice.loading("Loading...",{
onClose:function(){
alert('closed');
}
});