Gets/sets title of AlertView.
0.1
Gets/sets message of AlertView.
0.1
Gets/sets dismiss callback function.
myAlertView.onDismiss = (alertView) => {
console.log("Dismissed alert view with title: " + alertView.title);
};
0.1
Optional
alertView: IAlertViewDismissed AlertView object
Readonly
textReturns object which contains text of added TextBox
4.1.2
Allows you to add button to AlertView. You can add maximum 3 buttons on Android platform, on iOS there is no limitation.
myAlertView.addButton({
type: AlertView.Android.ButtonType.POSITIVE,
text: "Okay",
onClick: function() {
console.log("Okay clicked.");
}
});
0.1
Optional
index?: numberAllows to add TextBox to AlertView. In iOS, maximum two textbox can be added. It is not applied to Android but 2 textboxes recommended.
myAlertView.addTextBox({
text: "Hello!",
hint: "Hint!",
isPassword: false,
android: {
viewSpacings: { left: 50, right: 50 }
}
});
4.1.2
Optional
keyboardGenerated using TypeDoc
Since
0.1
AlertView is an alert box with buttons having custom behaviors. You can use AlertView for informing user or asking for confirmations. AlertView has buttons with callbacks that you can take action for each of them separately.
Example