Eight.Message.toast

Displays a Toast Notification. Template used is based off of what is specified on the ToastOptions object passed in. Also accepts a string (defaults to toastText01 template). Returns a WinJS.Promise object where complete maps to onactivated and ondismissed and error maps to onfailure.

Example

var opts = new Eight.Message.ToastOptions("text");

Eight.Message.toast(opts)
    .done(function onComplete(e) {
        // ... handle toast completed ...
    },
    function onError(e) {
        // ... handle toast errored ...
    });

Last edited Feb 10, 2013 at 2:29 AM by gotdibbs, version 4

Comments

No comments yet.