Files
NativeScript/apps/gallery-app/views/dialogs.ts
2015-03-03 10:34:40 +02:00

17 lines
356 B
TypeScript

import dialogs = require("ui/dialogs");
export function alertTapped(args) {
dialogs.alert("Hi there!");
}
export function confirmTapped(args) {
dialogs.confirm("Are you sure?");
}
export function promptTapped(args) {
dialogs.prompt("Enter name", "John Doe");
}
export function loginTapped(args) {
dialogs.login("Login:", "username");
}