Notifications

This article is in need of an editorial review.

Note: This page documents the Jetpack Prototype, which isĀ  no longer under active development. Read the experiment report for what we learned from it and the blog post announcing the first SDK release for what we're up to next!

The Notification Box appears at the bottom right corner of the browser and displays important information to the user.

The namespace for this class is jetpack.notifications.

Methods

show(titlestringbodystringiconstring)Draws a notification box.
titleThe head of the notification message.string
bodyThe messagestringfalse
iconThe URL of an .ico file.string
jetpack.notifications.show("hello world");

var myBody = " My first message body on Jetpack";
var myIcon = "http://www.mozilla.com/favicon.ico";
jetpack.notifications.show({title: "My first message on jetpack", body: myBody, icon: myIcon});

Document Tags and Contributors

Contributors to this page: MykMelez, thenickperson, JetpackBot, adw, Sheppy
Last updated by: Sheppy,
Hide Sidebar