【文件属性】:
文件名称:atomic-notify:在您的流星应用程序中显示错误、警告和成功通知
文件大小:5KB
文件格式:ZIP
更新时间:2021-07-20 12:54:51
JavaScript
原子通知
Notify 是一个简单而轻量级的流星包,它允许您创建跨越流星应用程序顶部的自我解除通知。
演示
这是一个非常基本的。
安装
meteor add atomic:notify
例子
Meteor . call ( "saveProfile" , function ( err , result ) {
if ( err ) return Notify . exception ( err ) ;
// Process result.
} )
用法
// Display success messages
Notify . success ( "Your task posted successfully" ) ;
// Display an warning message
Notify . warning ( "Email not sent, will retry sho
【文件预览】:
atomic-notify-master
----client()
--------notify.js(3KB)
--------template.html(187B)
--------template.css(2KB)
--------template.js(399B)
--------notification.js(1KB)
--------notification.html(195B)
----package.js(1012B)
----README.md(1KB)