From 7970b1383879ff2437dbdb5df582ca171a401c9a Mon Sep 17 00:00:00 2001
From: Website Deployment Script
This is an API that works both on
alerts. To show an alert that prompts the user to enter some information,
see AlertIOS; entering text in an alert is common on iOS only.
On iOS you can specify any number of buttons. Each button can optionally specify a style, which is one of 'default', 'cancel' or 'destructive'.
On Android at most three buttons can be specified. Android has a concept -of a neutral, negative and a positive button:
Note that by default alerts on Android can be dismissed by clicking outside of their alert box.
+To prevent this behavior, you can provide
+an optional options parameter { cancelable: false } to the Alert method.
Example usage:
You can edit the content above on GitHub and send us a pull request!
Examples # | Edit on GitHub |