diff --git a/apps/gallery-app/views/dialogs.ts b/apps/gallery-app/views/dialogs.ts index 4b5eb3935..f5dcae035 100644 --- a/apps/gallery-app/views/dialogs.ts +++ b/apps/gallery-app/views/dialogs.ts @@ -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}`)); } diff --git a/apps/gallery-app/views/dialogs.xml b/apps/gallery-app/views/dialogs.xml index d809819b4..053700b50 100644 --- a/apps/gallery-app/views/dialogs.xml +++ b/apps/gallery-app/views/dialogs.xml @@ -4,6 +4,12 @@