Displays a simple message box with the specified string and the OK button.
Smartcode
Syntax
ShowAlert(message)
Parameters
message(Required) – Message to be displayed
- String – A-Z,0-9,Special characters(except #,$)
- Length – 500 Characters
Example
ShowAlert(‘Hello World’)
Directcode
Syntax
OreAlert.alert(“Alert”, “Message”, “OK”, () =>{console.log(“Negative Pressed”)}, false)
Parameters
- title(Optional) – Title of the message
- message(Required) – Message to be displayed
- positiveButtonText(Optional) – Positive Button Text
- positiveOnPress(Optional) – Positive Button onPress callback
- cancelableFlag(Optional) – is Dialog cancellable
Example
OreAlert.alert(“Alert”, “Saved Successfully”, “OK”, () =>{console.log(“Negative Pressed”)}, false)