meteor-notifications:Meteor 应用程序的自定义通知

时间:2021-06-03 09:32:04
【文件属性】:
文件名称:meteor-notifications:Meteor 应用程序的自定义通知
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-03 09:32:04
JavaScript 流星通知 Meteor 应用程序的简单自定义通知。 TL; 博士; meteor-notifications包使向 Meteor 应用程序添加用户通知成为一种乐趣。 它也可以简单地定制。 没有提供模板(鼓励程序员提供自己的模板),但模板处理程序是为了程序员的方便而存在的。 您可以使用两种通知: 分布式- 显示给其他用户 本地- 显示给当前登录的用户 模板 流星通知提供了两个模板处理程序,您可以开箱即用: Notifications和NotificationsItem 。 您可以使用它们来处理您自己的自定义模板(只要您分别命名它们)。 还有一些全局模板处理程序可用于应用程序内的任何其他模板: Notifications和NotificationsItem 。 安装 使用 Meteor 安装: meteor add miro:notifications 快速开始 像这样定义您的自定
【文件预览】:
meteor-notifications-master
----.gitignore(32B)
----README.md(6KB)
----package.js(1KB)
----tests()
--------notifications_tests.js(91B)
----lib()
--------both()
--------server()
--------client()

网友评论