Skip to content
Sébastien Vitard edited this page Jan 9, 2014 · 10 revisions

TODO

Show a native alert from the Web side

TODO

Under the hood

This is the message sent to native side to show an alert.

{
    type: "ui",
    control: "alert",
    data: {
        title: "myTitle",
        message: "myMessage",
        buttons: [
            "myFirstButtonText",
            "mySecondOptionalButtonText",
            ...
        ],
        cancelable: true | false
    },
    callback: "myOptionalCallback"
}
Clone this wiki locally