Protected
_nativeGets/sets title of AlertView.
0.1
Gets/sets message of AlertView.
0.1
Optional
alertView: IAlertViewStatic
AndroidReturns object which contains text of added TextBox
4.1.2
Protected
preProtected
addProtected
addIOSPropsProtected
createAllows 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
onOptional
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
keyboardOptional
params: Partial<IAlertView>Generated 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