1.0.3 • Published 4 years ago

maya-notice v1.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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');
    }
});

options

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago