简体   繁体   English

向状态栏添加通知

[英]Adding a notification to the status bar

How can I get a scroll bar running on the status Bar at the bottom having the current time and the text placed based on the time in the program. 如何使滚动条在底部的状态栏上运行,并具有当前时间,并根据程序中的时间放置文本。

I am able to get a pop-up using: 我可以使用以下方法弹出窗口:

notifications.notify({

Not sure how to repeat this every 5minutes. 不知道如何每5分钟重复一次。 (or) to redirect that from pop up to have in status BAR (或)将其从弹出窗口重定向到状态BAR

For that sort of functionality, you need the widget module: 对于这种功能,您需要小部件模块:

https://addons.mozilla.org/en-US/developers/docs/sdk/latest/packages/addon-kit/widget.html https://addons.mozilla.org/zh-CN/developers/docs/sdk/latest/packages/addon-kit/widget.html

Widgets can contain an html document. 小部件可以包含h​​tml文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM