BEN NOTIFICATION
install
0)npm install --save ben-notification
1)move the sound
to your project /assets
2)MSG.set({"sound_path":"/assets/sound"})
3)require the style/msg-style.css
(or and animation.css
,ionicons.min.css
) to your project
// nodeJsconst MSG = module
// ES6
// html
HOW TO USE
const MSG = module // alertMSG// successMSG// warningMSG// errorMSG MSG
option of MSG.msg
title
type: string
default :''
content
type: string
default :''
colors
type: string
default :''
icon
type: string
default: false
sound
type: boolean
default: true
sound_path
type: string
default: "assets/sound/"
sound_file
type:string
default: "smallbox"
iconSmall
type: string
default: true
color
type:string
default: '#398bf7'
timeout
type: number
default: 3000
CALLBACK
callback well be fun if this notification closed
MSG