alert fixed

This commit is contained in:
Vladimir Enchev
2015-11-27 14:56:11 +02:00
parent 2eec961f9e
commit c3d3326cb2
5 changed files with 41 additions and 4 deletions

View File

@@ -12,6 +12,32 @@ export function alertWithOptionsTapped(args) {
});
}
export function alertWithNullTapped(args) {
dialogs.alert(null);
}
export function alertWithUndefinedTapped(args) {
dialogs.alert(undefined);
}
export function alertWithNumberTapped(args) {
dialogs.alert(1);
}
export function alertWithBooleanTapped(args) {
dialogs.alert(false);
}
export function alertWithFunctionTapped(args) {
dialogs.alert(function () {
//
});
}
export function alertWithObjectTapped(args) {
dialogs.alert({});
}
export function confirmTapped(args) {
dialogs.confirm("Are you sure?").then(r=> console.log(`Confirm result: ${r}`));
}