Table Of Contents

Application Packaging Standard

Last updated 18-Mar-2019

aps/alert

Creates information popup window.

Return: undefined

Overview

The aps/alert method is the simplest way to pop up a screen with a title and message to attract attention of a user. The method allows you to specify the title and description of what you need to show.

../../../../../_images/alert.png

The method accepts a single input object containing two string properties, a tile and description:

alert({
   title: "any title",
   description: "any message"
});

Example

RUN DEMO

require(["aps/alert", "aps/load", "aps/ready!"],
function(alert, load) {
    "use strict";
    load(["aps/Container", [
        ["aps/Button", {
            title: "Commit",
            onClick: function() {
                alert({
                    title: "Provisioning",
                    description: "The server provisioning has started and it will take a couple of minutes..."
                });
                this.cancel();
            }
        }]
    ]]);
});

Parameters

ARGUMENT TYPE DESCRIPTION
params
Object
An object with the following properties: