Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Displays a custom message box.  If the application is running in the browser, a browser alert box is used.  If the application is packaged as a native mobile application, a native dialog box is used.

Parameters:

  • message - the message to display in the box
  • callback - optional function to call when the dialog is dimissed
  • title - optional title for the native dialog box
  • button name - optionally overrides the name of the button to dismiss the dialog

Examples:

pui.alert("Process completed successfully");
pui.alert("Process completed successfully", function() { }, "My Application Name", "Done");
  • No labels